(a) Termination

The authorities provided under sections 5211(a), excluding section 5211(a)(3), and 5212 of this title shall terminate on December 31, 2009.

(b) Extension upon certification

The Secretary, upon submission of a written certification to Congress, may extend the authority provided under this chapter to expire not later than 2 years from October 3, 2008. Such certification shall include a justification of why the extension is necessary to assist American families and stabilize financial markets, as well as the expected cost to the taxpayers for such an extension. Notwithstanding the foregoing, the Secretary may further extend the authority provided under this chapter to expire on December 31, 2017, provided that (1) any such extension shall apply only with respect to current program participants in the Housing Finance Agency Innovation Fund for the Hardest Hit Housing Markets, and (2) funds obligated following such extension shall not exceed $2,000,000,000.