About two and a half weeks
Lehman Brothers filed for bankruptcy on September 15, 2008, and the $700 billion bailout was signed into law on October 3, 2008. In under three weeks, the response to the largest bankruptcy in US history went from panic to a sweeping rescue of the financial system.