the Treasury of the United States a fund which shall be known as the Employment Fund for Needy Families (in this subsection referred to as the Fund ). (2) Deposits into Fund Out of any money in the Treasury of the United States not otherwise appropriated, there are appropriated for each of fiscal years 2017 through 2023, $608,000,000 for payment to the Fund, which shall remain available until expended. (3) Grants (A) In general For each of fiscal years 2017 through 2023, the Secretary shall make grants, on a competitive basis, to qualifying entities as provided in this paragraph. (B) Qualifying entity For purposes of this paragraph, a qualifying entity for a fiscal year is a State, territory, Indian tribe, or tribal organization, operating a State program funded under this part (or any other State program funded with qualified State expenditures (as defined in section 409(a)(7)(B)(i))), that submits to the Secretary an application for a grant under this paragraph for the fiscal year, in such manner and at such time as the Secretary may require. (C) Allotment of funds (i) Technical assistance The Secretary shall reserve $10,000,000 out of the amounts made available under paragraph (2) for each fiscal year to provide technical assistance to qualifying entities receiving a grant under this paragraph for the fiscal year. (ii) Territories and Indian tribes The Secretary shall reserve, from the amount made available under paragraph (2) for a fiscal year that remains after applying clause (i), 3 percent for grants under this paragraph for the fiscal year to qualifying entities that are territories and 1 percent for grants under this paragraph for the fiscal year to qualifying entities that are Indian tribes or tribal organizations, to be allotted in a manner the Secretary determines to be appropriate. (iii) States (I) In general The amount of a grant under this paragraph payable for a fiscal year to a qualifying entity that is a State shall be the amount that bears the same ratio to the aggregate amount as the number