At the Justice Department and the Pentagon, the administration is curtailing the ability of lawyers to raise internal objections to the president’s use of power.