That shift already exists plenty, as one can see from the high degree of automation of those warehouses. The only thing that Unions would change there is that they can bargain e.g. for re-training of the workers made redundant.
Unions have not only fought for retraining, but for compensation for workers whose jobs were outsourced or automated away. Compensation is important in order for workers to transition careers without their families ending up homeless.