The decision in New York Times v. United States (1971) primarily dealt with the principle of prior restraint and the government's ability to prevent publication of information. The Court ruled that prior restraint is generally unconstitutional unless there is a compelling justification. Specifically, this justification often relates to national security.
Given the provided options, the correct answer would be:
D) when sharing information about national security.
The Court held that for the government to impose prior restraint, it must demonstrate that the publication would cause inevitable, direct, and immediate harm to national security.