X, the social media company previously known as Twitter, is suing the state of California over a law that requires companies to disclose details about their content moderation practices.