I thought there was no future for white people in STEM as they give all the jobs to Indian immigrants.
There's a great deal of truth to that. I worked as a contractor for a number of years at NASA, and I very much wanted to get in as an official NASA employee ("civil servants" they call them, laughably). I was pretty much told to my face that I had ZERO chance given that I was a white male. There were openings for which I applied nonetheless, which ended up being given away to women or minorities, positions that I was far better qualified for and in areas where I had a long track-record of success and experience, but they gave the positions to women and minorities fresh out of college ... a few of whom ended up demonstrating their incompetence within weeks of being hired.
So with regard to STEM work in the government, white males need not apply. And what remains in the private sector is shrinking rapidly as most of our manufacturing has gone to China and the third world. That's why there was huge boom in IT. As systems became more automated, they required more support. But more and more IT is being automated. You have cloud platforms like Microsoft Azure and Google AWS that manage and scale all the IT support resources pretty much automatically, so companies just put their stuff in the cloud instead of hiring local IT resources.
As far as India goes, however, companies are still doing some offshorting, but every single project I've ever worked on that entailed some Indian offshoring was an unmitigated disaster. Indian IT are seriously incompetent, and the wage gap is decreasing. Nevertheless, we're getting closer to where you won't need software developers either, as AI will simply take in the requirements and build systems automaticall for people. We see some trends toward that already.