SAN DIEGO — Donald Trump will go to trial in a class-action lawsuit against his now-defunct Trump University after the presidential election but before inauguration if he wins the White House, setting the stage for a president-elect to take the witness stand.