I don't think unionizing will help with off-shoring for development. I do think unionizing could bring about more equal treatment though. It seems most companies ignore their own policies when it comes to ratings, work assignment, hours, etc. Devs have very little recourse. Of course the assholes that do well and aren't afraid of c grade coders are the ones who don't want unions since they might loose their edge over others comp-wise.
Consider the common refrain: I'd rather negotiate for myself
It's like, a fundamental misunderstanding of how power dynamics work, as if you as a solo person in a 1000 person company could somehow EVER be more valuable to the company than the entire labor pool.
Newsflash: If your company doesn't throw a fit any time you try to take time off, like CEO comes and talks to you personally fit, they think they could replace you just fine. 40 years of project management has attempted to build things just for that.
The misunderstanding is yours. Workers understand what you say just fine, but don't care about out-negotiating the company. They will never meet the CEO at the bar, so it means nothing to them. They want to be able to out-negotiate their neighbour so they can peacock dominance over someone they actually interact with.
The purpose of a union is to establish a brotherhood between metaphorical neighbours so that they don't try to be assholes towards each other. While that does, indeed, improve the overall worker position against the company, it hinders the power dynamic between them. And that's where you find the pushback.
It's much like you find in 'middle-class' neighbourhoods where you see households trying to outdo each either with nicer yards, or fancier BMWs, or whatever, all while racking up crazy debt to pay for it all. If they invested the money they pour into that stuff instead they would be way better off, but being better off isn't the motivation.
Is it still forgetting if it never happened? Both the idea of the 8-hour work day and weekends predate the first recognized union. The 40-hour workweek became the norm during the Great Depression by way of government initiative in an attempt to spread the work out across more people.
Unions have long supported the 40-hour work week, but are not meaningfully responsible for it. If showing support for something is necessary for something to exist, then you could probably say that just about everything exists because of unions...
Even still, we're talking nearly 100 (when it became common) to well over 200 years ago (when it was conceived). Even if unions actually were responsible, people are going to naturally ask "What have you done for me lately?". Where is the 10-hour workweek?
Besides, let's say youre right and unions have given us all those things. Those standards are over 100 years old. If it were true, it would mean nationwide unions did some things 5 generations ago and have collected literal trillions in inflation adjusted dues* since and have provided nothing in return.
* 11% of the US is unionized, representing about 1.1 trillion in annual payroll. Average union due is 1.5%, that's $16.5B per year in union dues collected, over 100 years = $1.6 trillion. But union membership used to be much much higher than 11% so its actually a much bigger number than $1.6T. But you get the math.