Donald Trump assailed the judge and the New York attorney general from the witness stand Monday in the civil fraud case alleging he lied about his wealth to gain undue advantage in business deals, while he denied he engaged in wrongdoing at the Trump Organization.