Meta , the parent company of Facebook and President Donald Trump have settled a lawsuit filed by the president in 2021.