>H1B abuse and offshoring have both existed for decades, and neither are the proximate cause for these layoffs.
They were tolerated by the domestic workforce because times were good. Times are no longer good, so they're no longer tolerated.
You see this sort of pattern in all sorts of issues, not just H1Bs and tech.