Propping up GM legitimately helped hundreds of thousands of workers. Whether it was a good use of the money is a different question than that, but the money didn't go to shareholders, it went to keeping the operations going.
It's impossible to tell exactly what would have happened in a bankruptcy, but the entire company would have almost certainly been restructured, which would have meant generally clearing out the dead wood: shuttering factories, renegotiating anachronistic/extravagant union contracts, etc.
Coercing private citizens to pay for mismanaged companies and subsidize the gold-plated pension benefits of Baby Boomer employees is utterly immoral.
https://en.wikipedia.org/wiki/Motors_Liquidation_Company
Propping up GM legitimately helped hundreds of thousands of workers. Whether it was a good use of the money is a different question than that, but the money didn't go to shareholders, it went to keeping the operations going.