WASHINGTON (AP) — A federal judge agreed Friday to block the Trump administration from enforcing a policy limiting news reporters’ access to the Pentagon, agreeing with The New York Times that key portions of the new rules are unlawful.

U.S. District Judge Paul Friedman in Washington, D.C., sided with the newspaper and ruled that the Pentagon policy illegally restricts the press credentials of reporters who of the building rather than agree to the new rules.

The Associated Press