Twitter CEO Elon Musk accused Microsoft of illegally using Twitter's data to train its AI models and threatened a lawsuit.