In the Pentagon Papers case the government asserted in the Supreme Court that the publication of the material was a threat to national security. It turned out it was not a threat to U.S. security. But even if it had been that doesn't mean that it couldn't be published.