; (2) in subsection (g)(2), in the matter before subparagraph (A), by inserting and subsection (h) after paragraphs (3) and (5) ; and (3) by adding at the end the following new subsection: (h) Sunset of Medicaid funding limitations for Puerto Rico, the Virgin Islands of the United States, Guam, the Northern Mariana Islands, and American Samoa Subsections (f) and (g) shall not apply to Puerto Rico, the Virgin Islands of the United States, Guam, the Northern Mariana Islands, and American Samoa beginning with fiscal year 2018. . (b) Conforming amendments (1) Section 1902(j) of the Social Security Act ( 42 U.S.C. 1396a(j) ) is amended by striking , the limitation in section 1108(f), . (2) Section 1903(u) of the Social Security Act ( 42 U.S.C. 1396b(u) ) is amended by striking paragraph (4). (3) Section 1323(c)(1) of the Patient Protection and Affordable Care Act ( 42 U.S.C. 18043(c)(1) ) is amended by striking 2019 and inserting 2018 . (c) Effective date The amendments made by this section shall apply beginning with fiscal year 2018. 102. Elimination of specific Federal medical assistance percentage (FMAP) limitation for territories Section 1905 of the Social Security Act ( 42 U.S.C. 1396d ) is amended— (1) in subsection (b)(2), by inserting for fiscal years before fiscal year 2018 after American Samoa ; and (2) in subsection (y)(1), in the matter preceding subparagraph (A)— (A) by inserting , for fiscal years before fiscal year 2018, before is one of the