Bank bailouts weren’t the problem. Massive amount of fraud the banks allowed was the problem. They allowed people to borrow massive amounts of cash with little to no income. None of the senior execs were prosecuted.
This of course hurt homeowners who had loans made that never should’ve been made, but the root cause was investors not getting what they thought they were buying, and the resulting collapse in confidence. Homeowners were collateral damage, and as you mention, prosecutions were underwhelming (only 1 person was prosecuted).