The appellate court is preparing to overturn Letitia James’s nearly $500m case against Trump