There is another side of this coin too. I just finished reading The Box, a book on the advent of containerization, and it's appalling how unions fiercely fought any sort of mechanization. A job that required only 1-2 longshoremen mandatorily needed many more because unions said so. Days, and sometimes weeks, were wasted on strikes when a consensus couldn't be reached. Jobs that weren't needed anymore were still forced to be kept because any labor-saving innovation was undesirable. In the end, it was more cost-effective to compulsorily retire the longshoremen with a guaranteed income than to fight them.
I don't deny that the unions serve a purpose but the exploitation of their dominance can surely set back innovation by years. I wouldn't want to part of an organization that mandates that I can't touch PHP code because I am a Frontend Engineer.