I read a lot about how H1B workers take jobs. So, what is actually going on.
If your company actually hired a H1B worker, you just felt the reality of capitalism. It sucks to loose a job but a cheaper worker just got your job, hence, capitalism is at work.
The most likely situation is that your company didn’t hire an H1B but rather went with an out sourcing company that hired contractors who are H1B or just off shore the work at a fraction of the cost. Once again, capitalism is at work.
US companies will likely in the event that H1B gets greatly reduced will still out source work to off shore workers. This works in the short term but has a problem. Somebody still needs to be onsite to coordinate with the companies, either the out sourcing company will place somebody onsite or the company will need to put somebody in that place.
So why off shore?
QA teams are very thorough. If Japanese were better at English, I would build a Japanese team. They are thorough! Would I choose Americans? Very unlikely because they are more into unionizing and and coffee breaks. So you end up with a lot companies choosing a cheap and good option.
Dev teams. I would hire Americans. Currently, application development is still mostly English based and you would end up with always current best practices. But now you are doubling the cost of your project. If you in-house hire you have to pay benefits and keep them busy for several years. Most Americans want to keep their jobs. Companies don’t always roll out software so they want to outsource that work so they don’t have to keep a team on hand. Not a lot of US companies out source on the Enterprise level. Lots of companies exist but they are smaller firms. So corporates end up going with big out sourcing companies which have off shore teams because the economics work. Many of these out sourcing companies are based over seas with corporate offices in the US. Their employees hold green cards with a few American hires that provide inside connections to larger corporations.
So, capitalism is the problem. Companies want to make a profit and keep costs down. Asking a company to be more social responsible is asking them to be socialistic entities.
The only way to fight this is put pressure on companies to hire American.