This serves as a very important lesson to techies everywhere -- even if you don't form a "union", which I think wouldn't work, we need to work together to stop things like H-1B abuses, offshoring of critical work, and rampant incompetency in the software and systems "profession." I've said it before, IT people and developers need to pool their resources, set up an engineering-style profession, and buy a few favorable laws.
This of course implies that you can effectively control offshoring for an activitiy that does not require physical presence in your country ("coding") to a pharmacy. Around here selling of most drugs is actually only permitted in person. Most unions specifically concern professions that operate in a physically restricted market. If your job can just plainly leave your country or continent, what you are describing is basically counterproductive. The kind of laws that you want to lobby for are benefits for IT people and companies (free and better education of talent, tax exempts. research grants, start-up funding, etc.)