After Clinton repealed Glass Steagall in 1999, any bank can enter into risky investments.You would have preferred a bit of contagion?
Now, if you guarantee all deposits, you basically have a system where:
1. If the risky investments work well, the bank get the profits.
2. if the risky investments fails, the Fed pays.