The order came in a lawsuit filed by the attorneys general of Missouri and Louisiana, who claim the administration is trying to silence its critics.

In the ruling, Judge Terry A. Doughty of the U.S. District Court for the Western District of Louisiana said that parts of the government, including the Department of Health and Human Services and the Federal Bureau of Investigation, could not talk to social media companies for “the purpose of urging, encouraging, pressuring, or inducing in any manner the removal, deletion, suppression, or reduction of content containing protected free speech.”