Meta has agreed to settle the lawsuit filed by Trump over his suspension from Facebook in 2021.