Trump N.Y. probe: Judge dismisses lawsuit