(CNN) A New York state judge ordered President Donald Trump to pay $2 million to a collection of nonprofit organizations in connection with a settlement with the New York state attorney general's office to resolve a civil lawsuit alleging the foundation unlawfully coordinated with the 2016 Trump presidential campaign.

In her decision filed Thursday, Justice Saliann Scarpulla found that "Mr. Trump breached his fiduciary duty to the Foundation," including by "allowing his campaign to orchestrate" a televised fundraiser ostensibly for the foundation in Des Moines, Iowa, in January 2016, and allowing the campaign to direct the distribution of the money raised from that event "to further Mr. Trump's political campaign."

In her decision, however, the judge didn't impose one of the outcomes the attorney general's office sought: a ban on Trump and his children serving on the board of any other New York nonprofit. She also declined to order Trump to pay punitive damages.

The order and settlement bring an end to questions that first arose during the 2016 campaign about whether Trump used money raised under the guise of charitable work for political gain. The resolution puts the President in the unusual position of having to pay millions in damages while in office, at a time when he faces a large number of other personal legal battles.

Filed in June 2018, the lawsuit alleged that the President and his three eldest children -- Don Jr., Ivanka and Eric -- violated federal and state campaign finance laws and abused the Donald J. Trump Foundation's tax-exempt status. According to the lawsuit, the Trumps allowed the foundation to be used "as little more than a checkbook to serve Mr. Trump's business and political interests."

Read More