Elon Musk has settled a long-running legal battle with advertisers on the social media platform X, according to a report by the Financial Times.