https://www.rollingstone.com/culture/culture-news/elon-musk-x-twitter-california-content-moderation-law-1234937858/ That is a troubling precedent... And inconsistent with the New York case. I imagine he'll appeal.
https://www.thefire.org/news/victory-after-fire-lawsuit-court-halts-new-yorks-misguided-law-targeting-online-speech Here's a piece on the previous New York law which was ruled unconstitutional.