One of the responsibilities of the Fed is to be the lender of last resort.
I agree that the Fed is the lender of last resort, but when part of the bailout involves absorbing loans that should not have been issued, then it also did a bad job at overseeing risk by lending institutions. Part of the blame goes to Congress, but the Fed should have said something about this.