Trump's legal troubles face crucial moment as they move to court