New York's attorney general filed a lawsuit previous year alleging Trump and his family illegally operated the foundation as an extension of his businesses and his presidential campaign.
"More than three years ago, we first drew America's attention to Donald Trump's illegal operation of his eponymous charitable foundation for his own personal and political benefit", said Bookbinder, whose group researches ethical and legal violations related to the government. "The court's decision, together with the settlements we negotiated, are a major victory in our efforts to protect charitable assets and hold accountable those who would abuse charities for personal gain".
That agreement also saw "the resolution of damages for alleged waste resulting from improper uses of Foundation assets, except for those arising out of the allegedly improper use of the Foundation and distribution of the $2,823,000 received by the Foundation ('Funds') from Mr. Trump's televised fundraiser in Des Moines, Iowa on January 28, 2016", the judge said in the order (pdf). The event was designed "to further Mr. Trump's political campaign", Scarpulla said.
Underwood filed suit after a 21-month probe that she said had uncovered "extensive unlawful political coordination" between the foundation and the campaign. "Further, because the parties have agreed to dissolve the Foundation, I direct Mr. Trump to pay the $2,000,000, which would have gone to the Foundation if it were still in existence, on a pro rata basis to the Approved Recipients", the judge wrote.
In addition to that payment, another $1.8 million that remained in the foundation's coffers will be divided up evenly and distributed to eight charities, including the Children's Aid Society, the United Negro College Fund, and the U.S. Holocaust Memorial Museum, according to the attorney general's office.
In a statement, a Trump Foundation spokesperson said the foundation was "pleased to donate an additional $2 million" to those organizations.
As part of those agreements, made public Thursday, Trump admitted personally misusing foundation funds.
The final outstanding issue, according to the judgement, was the amount that Trump would pay in damages over the Iowa fundraiser.
The White House did not immediately comment on the judgement.
It continued: "Unfortunately, that donation was delayed due to the Attorney General's politically motivated lawsuit".