That move earned Trump a gag order and a warning from the judge to steer clear of insulting court staff.