Meta will pay $US25 million to Donald Trump after settling a lawsuit filed by the US president over him being suspended from its platforms in 2021.