Didn't even have to wind them down to benefit in some cases. I can't remember if it was the automaker or some of the 08 bank bailouts where the stock the government took as part of the bailout turned a profit after a few years.
https://projects.propublica.org/bailout/
https://www.reuters.com/article/business/us-government-says-...
GM lost taxpayers $11B, Chrysler lost $1.2B.
You’re likely thinking about TARP:
https://en.wikipedia.org/wiki/Troubled_Asset_Relief_Program
TARP delivered a $15.3B surplus on $426.4B invested for a roughly 3.5% return.