A Canadian financial firm recently opened an office in the U.S. and, as part of its staffing-up process, hired an analyst—a numbers whiz with a Ph.D. in physics—who had been working in Boston for another financial company.

Because the man was a Chinese national, his firm took what previously had been a pro forma step: It applied to have his H-1B visa transferred to his new employer.

In...