Ask HN: Are visa holder getting laid off first?
With news of layoffs, makes me wonder who is going and who is staying, if there is policy for protecting U.S. workers first.
Any money spent obtaining a visa like an H1B is already spent, it's not part of the ongoing payroll expenses, so I doubt it comes into the equation. Some companies pay people on visas less because the visa is tied to the job, reducing the employee's options and bargaining power. Finding yourself lower down on the salary spreadsheet may work to your advantage.
That said, they are often expensive too and have to justify their value like everyone else.
Now there can be a snide comment about how the visa workers are likely "better bang for the buck" for the company, and the company may have a hard time arguing they need more visas next year if they just laid non-visa workers off.