A move that will test how far its immigration crackdown can reach across borders.