tldr: the big banks held a bunch of MBS (Mortgage-Backed Securities) that were worth literally $0. The Fed came in and said: "every security that you own, if it is not profitable, you can sell it to us at face value. We can print as much money as we want". So the banks were able to easily get rid of anything that wasn't profitable for free (with no losses), that is why banks instantly returned to profitability. The Fed still owns all of this, $2T of the 2008 bailouts are still on their books. If they undid even ~10% of that continuous 2008 bailout and unloaded it on the market, the entire market would crash.
These are advanced levels of Bank of Japan economics that are almost so stupid it is impressive