SAN DIEGO — President-elect Donald Trump agreed Friday to pay $25 million to settle several lawsuits alleging that his now-defunct school for real estate investors defrauded students who paid up to $35,000 to enroll in Trump University programs.If approved by a judge, the deal announced by New York Attorney General Eric Schneiderman would settle a lawsuit he filed three years ago and two class-action lawsuits filed in California on behalf of former students.The suits alleged that Trump University failed to deliver on its promise to teach success in real estate. They accused the program of misleading students by calling itself a university when it was not an accredited school and by saying that Trump “hand-picked” instructors.Messages left with several of Trump’s attorneys and a spokeswoman were not returned Friday.Trump has denied the allegations and said during the campaign that he would not settle. He told supporters at a May rally that he would come to San Diego to testify after winning the presidency.“I could have settled this case numerous times, but I don’t want to settle cases when we’re right. I don’t believe in it. And when you start settling cases, you know what happens? Everybody sues you because you get known as a settler. One thing about me, I am not known as a settler,” Trump said at the time.