Trump in court days before Iowa caucuses