Meta and its CEO Mark Zuckerberg have agreed that the company will pay $25 million to settle a lawsuit brought by President Donald Trump.