The court said that while national security must be protected, it was vital for the public to have information in light of the US war with Iran and its recent intervention in Venezuela.

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.