Most of the big ones. The government in fact was issued equity in these banks that they later sold to recover the funds. So it was very much necessary to preserve shareholder value.
This arrangement probably wouldn't have upset people so much were the people responsible for the crisis held accountable. Worse still, they paid themselves huge bonuses as soon as they got bailed out from the bailout money itself! All this made people question the real intention behind the bailout. Corruption is often effected indirectly, so as to give the perpetrator plausible deniability.
Please name a bailed out bank which didn't hit shareholders.