X is the second social media company to settle a censorship lawsuit from Trump, who sued the platform in 2021, when it was known as Twitter and led by former CEO Jack Dorsey.