From the unions perspective, a bankruptcy isnt welcome, nevertheless it could easily bring one about.
In practice, that isn't necessarily true, at least in the short run. If an airline goes out of business, that doesn't mean all these workers will just be absorbed into other airlines, especially not at the prices they just failed to bargain for. They may need to switch industries and start from close to zero.
Unions are supposed to prevent that from happening, but when they overplay their hand, both sides lose.
Talking about GM, the labor cost for building cars in the US is so high, it barely makes sense. Either foreign labor needs to get more expensive (perhaps through tariffs), or domestic labor needs to get cheaper. Otherwise, these jobs will disappear and the unions will become obsolete. It's not a good bargaining position.
I find it very hard to believe that any union has ever destroyed any company. But if it has, then it probably was for the best and the company deserved to be destroyed.