Under the deal, Meta will pay $22 million to a fund to support the construction of Trump’s presidential library.