Federal judge grants temporary restraining order on N.Y. sta