Elon Musk’s social media company X, formerly known as Twitter, filed a lawsuit against the liberal advocacy group Media Matters for America.