The judge heard arguments from the three outlets and the government over a decision to keep them from covering the White House.