With Trump in court, judges express skepticism of claims that he’s immune from prosecution