; and (B) issue an order requiring the Attorney General, acting through the Director of the Bureau of Justice Assistance, to— (i) declare the State to be ineligible to receive any Federal funds for the construction or staffing of a prison or jail in accordance with subsection (b)(1)(A); and (ii) reduce grant funding of the State in accordance with subsection (b)(1)(B). 4. Community Reinvestment Fund (a) Establishment There is established in the Treasury of the United States a fund, to be known as the Community Reinvestment Fund (referred to in this section as the Fund ). (b) Deposits The Fund shall consist of— (1) any amounts not awarded to a covered State because of a determination under section 3(b)(1); and (2) any amounts otherwise appropriated to the Fund. (c) Use of Fund amounts Amounts in the Fund shall be available to the Secretary of Housing and Urban Development to establish a grant program to reinvest in communities most affected by the war on drugs, which shall include providing grants to impacted communities for programs such as— (1) job training; (2) reentry services; (3) expenses related to the expungement of convictions; (4) public libraries; (5) community centers; (6) programs and opportunities dedicated to youth; (7) the special purpose fund discussed below; and (8) health education programs. (d) Availability of Fund amounts Amounts in the Fund shall be available without fiscal year limitation. (e) Authorization of appropriations There are authorized to be appropriated to the Fund $500,000,000 for each of fiscal years 2018 through 2040.