Isn't that just delaying the inevitable? Yangshan Deep-Water Port in Shanghai is one of the most automated ports. Considering there are more people in China than in the US, China still automated their port.

I'm not making a value judgment on the specific case of dock workers, I'm rather saying that unions can and do prevent automation. If Software Devs had unionized earlier, a lot of positions would probably still be around.