Unions are doing this as allowing someone like Tesla not to follow contracts, might mean that others will try as well and then entire thing collapses.
It seems more like unions are bloated organizations wherever they are, and they want to maintain/increase their own power even when it is not necessarily to the benefit of workers.