The judgment in Near v. Minnesota did not view freedom of the press as absolute. Exceptions to the rule included national security, libel, and obscenity.
Near v. Minnesota Opinion 1931
National Archives, Records of the Supreme Court of the United States