Silicon Valley relies on foreign talent to compete in the global AI race. Some tech leaders say that’s a national security risk.