The first amendment of the US constitutions says that it's illegal for the government to make a law which abridges people's freedom of speech. There are many cases of government entities working with social media companies to suppress speech as the Twitter Files have proved. As the government created and upholds those federal entities on the basis of laws, the government is responsible.