Foreign countries appear worried that the United States’ immigration crackdown could have spillover effects.