Valid options are to offshore
If they could easily offshore, why would they take the time and effort to bring foreign workers to the U.S.? Bringing someone in means hiring immigration attorneys, government fees (those H1-B visas don't come cheap), pay local wages (which are still higher than rupees, especially in Silicon Valley) and wait months for the entire process to take place.
On top of that, I've seen companies undo their offshoring because they found out that working with Bangalore and Chennai can be difficult. Sure, standalone projects can be done remote without much effort, but it's difficult to integrate working across continents, language barriers, timezones and rupees.
If they project could be cancelled without business impact, it never served a valid business reason and should have been cancelled anyway.