For decades, the U.S. has attracted talented scientists from all over the world. That may be changing.