Fund that otherwise expired or would expire in 2016, 2017, 2018, 2019, 2020, 2021, or 2022 under that section: Provided further , That section 231(b) of such Act ( 42 U.S.C. 12771(b) ) shall not apply to any uninvested funds that otherwise were deducted or would be deducted from the line of credit in the participating jurisdiction’s HOME Investment Trust Fund in 2018, 2019, 2020, 2021, or 2022 under that section and the funds shall be invested only in housing to be developed, sponsored, or owned by community housing development organizations. Self-help and assisted homeownership opportunity program For the Self-Help and Assisted Homeownership Opportunity Program, as authorized under section 11 of the Housing Opportunity Program Extension Act of 1996, as amended, $55,000,000, to remain available until September 30, 2022: Provided , That of the total amount provided under this heading, $10,000,000 shall be made available to the Self-Help Homeownership Opportunity Program as authorized under section 11 of the Housing Opportunity Program Extension Act of 1996, as amended: Provided further , That of the total amount provided under this heading, $40,000,000 shall be made available for the second, third, and fourth capacity building activities authorized under section 4(a) of the HUD Demonstration Act of 1993 ( 42 U.S.C. 9816 note), of which not less than $5,000,000 shall be made available for rural capacity building activities: Provided further , That of the total amount provided under this heading, $5,000,000 shall be made available for capacity building by national rural housing organizations with experience assessing national rural conditions and providing financing, training, technical assistance, information, and research to local nonprofits, local governments, and Indian Tribes serving high need rural communities. Homeless assistance grants For the Emergency Solutions Grants program as authorized under subtitle B of title IV of the McKinney-Vento Homeless Assistance Act, as amended