Feb 12 (Reuters) - Elon Musk's social media platform X has agreed to pay about $10 million to settle a lawsuit that U.S. President Donald Trump brought against the company and its former chief executive, the Wall Street Journal reported on Wednesday.