Judge snaps at Trump in NY fraud case