You may not agree with it....but there is over a century of legal precedent that would allow for it.
And in this case, we’re not talking about imposing censorship. We’re talking about preventing censorship required by a foreign government. Otherwise, the social media companies will abide by the EU standard globally because its much easier/cheaper to do that than have an EU version of their platform and an American or global version.