SAN DIEGO (AP) — A judge has approved an agreement for President Donald Trump to pay $25 million to settle lawsuits over his now-defunct Trump University.

The decision Friday by U.S. District Judge Gonzalo Curiel in San Diego ends nearly seven years of legal battles with customers who claimed they were misled by failed promises to teach success in real estate.

READ MORE: Kings Lose To Flames 3-2, Markstrom Makes 40 Saves

The ruling settles two class-action lawsuits and a civil lawsuit by New York Attorney General Eric Schneiderman.

READ MORE: Statements From Los Angeles Community College District and California Community Colleges Chancellor’s Office

Trump had vowed never to settle but said after the election that he didn’t have time for a trial, even though he believed he would have prevailed. Under terms of the settlement, he admits no wrongdoing.

Attorneys for the customers say thousands will get at least 90 percent of their money back.

MORE NEWS: First Case Of Omicron Variant Detected In LA County

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)