A federal judge has delivered a major legal setback to the White House, blocking a sweeping immigration policy targeting international students and foreign journalists. The controversial plan to end open-ended stays in the US has been frozen nationwide just hours before it was due to take effect.