Federal judge grants stay to allow those with visas to remain