President Donald Trump has settled a lawsuit against Elon Musk's X over the social media platform, formerly known as Twitter, banning him after the Jan. 6, 2021 attack on the Capitol.