Many american companies learned the hard way that indian programmers were not the great bargain they were led to believe. They had to pay americans to fix all the stuff they got wrong the first time, took a lot longer and more money than if they would have just had american programmers and sw engineers doing it from the beginning.
I worked for Oracle for 17 years.
When I started with my last team we had 15 people. All were Americans.
When I got laid-off 5 years later, we still had 15 people. However, only two of us were Americans. The rest were Chinese, all except one who lived in China.
A friend of mine, an Indian, swore he would NEVER move back to India as it was such a hellhole.
Sad to say, many more American companies refuse to learn from the mistakes of others, but are intent on repeating them.