; and (4) solid waste management grants under section 310B(b) of that Act ( 7 U.S.C. 1932(b) ). (b) Electric program Out of funds of the Treasury not otherwise appropriated, there is appropriated to the Administrator of the Rural Utilities Service $250,000,000 for fiscal year 2018, to remain available until expended, to provide electric infrastructure grants for eligible programs and activities in Puerto Rico and the Virgin Islands under the Rural Electrification Act of 1936 ( 7 U.S.C. 901 et seq.). 302. Rural Energy for America Program Out of funds of the Treasury not otherwise appropriated, there is appropriated to the Secretary of Agriculture $125,000,000 for fiscal year 2018, to remain available until expended, to provide financial assistance and grants for eligible programs and activities in Puerto Rico and the Virgin Islands under section 9007 of the Farm Security and Rural Investment Act of 2002 ( 7 U.S.C. 8107 ). 303. Rural community facilities program Of the amounts made available for each of fiscal years 2018 through 2027 for the Rural Housing Service, Rural Community Facilities Program Account , the Rural Business—Cooperative Service, Rural Business Program Account , and the Rural Utilities Service, Rural Water and Waste Disposal Program Account , the Secretary of Agriculture shall allocate not less than 1 percent for assistance in one or more county-equivalent subdivisions in Puerto Rico and the Virgin Islands the average percentage of the population of which living in poverty during the 30-year period ending on the date of enactment of this Act is not less than 20 percent, as measured by the 1990, 2000, and 2010 decennial censuses. 304. Rural housing (a) Other special loans and grants for minor improvements to farm housing and buildings (1) In general Out of any funds in the Treasury not otherwise appropriated, there is appropriated to the Secretary of Agriculture $20,600,000, to remain available until expended, for the cost of grants for very low-income housing repair and rural housing preservation