Testimony ended Wednesday in the New York attorney general’s marathon civil fraud trial against Donald Trump, setting the stage for a January ruling that could determine the fate of the former president’s business empire.