Elon Musk has said X, formerly known as Twitter, will pay the legal bills of anyone who is treated unfairly by their employer for their activity on his social media platform.