The process you describe nostalgically is called braindrain on the third world, and if it's wavering it's due to changing economic and geopolitical landscapes. The process itself created an outflow of scientific and technological knowledge, which paired with industrial outsourcing strenghtened even America's geopolitical rivals. Actual xenophobic and nationalistic attitudes might have protected American hegemony, but you can't put that genie back in the bottle.