; and (2) $20,000,000 is for such activities in the Virgin Islands. (g) Emergency Solutions Grants Out of funds of the Treasury not otherwise appropriated, there is appropriated $102,000,000 for fiscal year 2018, to remain available until expended, for assistance to Puerto Rico and the Virgin Islands under the Emergency Solutions Grant Program under subtitle B of title IV of the McKinney-Vento Homeless Assistance Act ( 42 U.S.C. 11371 et seq.), of which— (1) $99,000,000 is for assistance to Puerto Rico; and (2) $3,000,000 is for assistance to the Virgin Islands. 135. Oversight (a) Planning process Puerto Rico and the Virgin Islands may not receive any funds under this subtitle, unless Puerto Rico and the Virgin Islands undertake a planning process, administered by the respective regulatory drinking and waste water and service commissions, for the water system of Puerto Rico and the Virgin Islands, respectively. (b) Requirements The planning process required under subsection (a) shall— (1) contain an assessment of the current water needs of the customer classes and future, modernization and resiliency needs of a rebuilt drinking and waste water system; (2) describe a transparent and participatory process to evaluate and determine the potential options for meeting the above needs; and (3) include recommendations for where funds should be directed for accomplishing the goals described in paragraphs (1) and (2). II Medicaid and Medicare Parity A Medicaid 201. Elimination of general Medicaid funding limitations ( cap ) for territories (a) In general Section 1108 of the Social Security Act ( 42 U.S.C. 1308 ) is amended— (1) in subsection (f), in the matter preceding paragraph (1), by striking subsection (g) and inserting subsections (g) and (h) ; (2) in subsection (g)(2), in the matter preceding subparagraph (A), by inserting subsection (h) after subject to