Meta has agreed to pay former President Donald Trump $25 million to settle a lawsuit regarding his claims about the company's handling of his accounts on Facebook and Instagram.