The Department of Defense had required reporters to agree to certain rules on what information they could gather in order to maintain access to the Pentagon.

President Donald Trump’s administration has said the policy is reasonable and necessary to protect the military.

A federal judge blocked the Department of Defense press access policy in a lawsuit by the New York Times.