A reliance on foreign students for academic research has allowed the US to ignore flaws in its domestic tech worker pipeline, a scholar argues.