"Train Americans," the US commerce secretary told big companies, some of which have relied on foreign high-skilled workers for years.