Goldman received $10B in CPP funds on October 28, 2008 and repaid it on June 9, 2009.
JPM received $25B in CPP funds on October 28, 2008 and repaid it on June 9, 2009.
Aside from CPP, any bank that had assets affected by TARP purchases -- or by the potential that follow-on programs could affect those assets -- had its balance sheet ballasted in one way or another by government intervention.
All of the banks that survived will say they didn't "need" government intervention, for the same reason that they don't like to borrow from the discount window: it looks desperate to take help from the government. But technically both of those banks received an injection of liquidity via TARP.