I hope you forgive me for the candor,but, at the home parenting level even in early life, kids have to be raised to pursue such fields or at least see others like them do well and succeed so they can draw inspiration. In other words, an asian american(or nigerian!) person pursuing STEM would not feel like they're swimming upstream and against the flow while america born black americans and many rural european americans would feel that way.
I don't presume that's all there is to it, but plenty of immigrants with terrible education spending in their 3rd world countries get full ride scholarships in STEM in the US. I am certain, it's not something solvable by throwing money at lower education. uni's in america are a cash grab scheme, so you are asking people to get into a lifetime of debt right now. Instead of depending on foreign workers, the US government on it's part should conditionally subsidize higher education for americans with the condition being they pursue in demand acadameic goals.
[1] https://www.chron.com/news/article/Data-show-Nigerians-the-m...