At the termination of the HOPE for Homeowners Program established under section 1715z–23 of this title, if amounts used to reimburse the Treasury under paragraph (1) exceed the total net cost to the Government of the HOPE for Homeowners Program, such amounts shall be used for their original purpose, as described in paragraphs (1)(B) and (2)(B) of section 4567(a) of this title.
The amounts referred to in subparagraphs (A) through (C) of paragraph (1) shall be deposited into a fund established in the Treasury of the United States by the Secretary of the Treasury for such purpose.
Except as provided in subsection (b), the Secretary shall distribute the amounts allocated for the Housing Trust Fund under this section to provide affordable housing as described in this subsection.
A State receiving grant amounts under this subsection may designate a State housing finance agency, housing and community development entity, tribally designated housing entity (as such term is defined in section 4103 of title 25), or any other qualified instrumentality of the State to receive such grant amounts.
Not later than 60 days after the date that the Secretary determines the formula amounts described in paragraph (3), the Secretary shall caused  to be published in the Federal Register a notice that such amounts shall be so available.
If the formula amount determined under paragraph (3) for a fiscal year would allocate less than $3,000,000 to any of the 50 States of the United States or the District of Columbia, the allocation for such State of the United States or the District of Columbia shall be $3,000,000, and the increase shall be deducted pro rata from the allocations made to all other of the States (as such term is defined in section 4502 of this title).
Grant amounts allocated to a State or State designated entity under this subsection shall be used or committed for use within 2 years of the date that such grant amounts are made available to the State or State designated entity. The Secretary shall recapture any such amounts not so used or committed for use and reallocate such amounts under this subsection in the first year after such recapture.
The Secretary shall, by regulation, provide that any return on a loan or other investment of any grant amount used by a State or State designated entity to provide a loan under this subsection shall be treated, for purposes of availability to and use by the State or State designated entity, as a grant amount authorized under this subsection.
In determining compliance with the housing goals under this subpart and the duty to serve underserved markets under section 4565 of this title, the Director may not consider any grant amounts used under this section for eligible activities under paragraph (7). The Director shall give credit toward the achievement of such housing goals and such duty to serve underserved markets to purchases by the enterprises of mortgages for housing that receives funding from such grant amounts, but only to the extent that such purchases by the enterprises are funded other than with such grant amounts.
If any recipient of assistance under this section is determined, in accordance with clause (ii), to have used any such amounts in a manner that is materially in violation of this section, the regulations issued under this section, or any requirements or conditions under which such amounts were provided, the State or State designated entity shall require that, within 12 months after the determination of such misuse, the recipient shall reimburse the State or State designated entity for such misused amounts and return to the State or State designated entity any such amounts that remain unused or uncommitted for use. The remedies under this clause are in addition to any other remedies that may be available under law.
If the number of units described in subparagraph (A)(i) exceeds the number of extremely low-income households as described in subparagraph (A)(ii), there is no shortage.
If the number of units described in subparagraph (A)(i) exceeds the number of very low-income households as described in subparagraph (A)(ii), there is no shortage.
The term “very low-income family” has the meaning given such term in section 4502 of this title, except that such term includes any family that resides in a rural area that has an income that does not exceed the poverty line (as such term is defined in section 9902(2) of title 42, including any revision required by such section) applicable to a family of the size involved.
If, after July 30, 2008, in any year, there is enacted any provision of Federal law establishing an affordable housing trust fund other than under this chapter for use only for grants to provide affordable rental housing and affordable homeownership opportunities, and the subsequent year is a year referred to in subsection (c), the Secretary shall in such subsequent year and any remaining years referred to in subsection (c) transfer to such affordable housing trust fund the aggregate amount allocated pursuant to subsection (c) in such year. Notwithstanding any other provision of law, assistance provided using amounts transferred to such affordable housing trust fund pursuant to this subsection may not be used for any of the activities specified in clauses (i) through (vi) of subsection (c)(9)(D).
Any grant under this section to a grantee by a State or State designated entity, any assistance provided to a recipient by a State or State designated entity, and any grant, award, or other assistance from an affordable housing trust fund referred to in subsection (h) shall be considered a Federal award for purposes of the Federal Funding Accountability and Transparency Act of 2006 (31 U.S.C. 6101 note). Upon the request of the Director of the Office of Management and Budget, the Secretary shall obtain and provide such information regarding any such grants, assistance, and awards as the Director of the Office of Management and Budget considers necessary to comply with the requirements of such Act, as applicable, pursuant to the preceding sentence.