Donald Trump renewed attacks on the wife of the judge in the New York civil fraud trial of his business empire, before and almost immediately after an appellate court on Thursday reinstated a gag order against him in the case.