President-elect Donald Trump agreed Friday to pay $25 million to settle lawsuits against his now-defunct Trump University for real estate investors, averting a trial in a potentially embarrassing case that he had vowed during the campaign to keep fighting.