The payment will end the lawsuit Donald Trump filed against the social media giant in 2021 over the suspension of his Facebook and Instagram accounts after the January 6 riot at the US Capitol.