Meta has agreed to pay $25 million to settle a lawsuit filed by Donald Trump over his social media suspension.