The government didn't
give money, they invested because the market wasn't in a position to do so when the industry needed it. The narrative that the company is only going to do good short-term because the government gave them a lot of money doesn't make sense when the government has since sold it's position in that company
for a profit, meaning the market now viewed that company as a more favorable investment then they did when the government intervened.
> The free market is supposed to weed out the chaff.
The free market doesn't care about stability, but we as the people that deal with the market, should. An unconstrained free market will swing wildly, which is one of the ways it will identify the chaff to cull, or depending on how low the swing is, the not-quite-as-good wheat to cull. The US has long recognized the benefits of a steady economy though, so while there isn't as aggressive culling, allowing some mediocre companies to survive, the environment itself is more amenable to sustaining a population of people which is the whole point of the economy.