Instead of the government (us) buying toxic debt we invest in those banks that are solvent, which gives them reserve capital for lending. Other investors will then step in as well. Current shareholders are diluted.
The public ends up profiting. The banking system recovers. The bad actors lose out.