; 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 ; and (B) by inserting and, for fiscal year 2018 and subsequent fiscal years, is one of the 50 States, the District of Columbia, Puerto Rico, the Virgin Islands of the United States, Guam, the Northern Mariana Islands, or American Samoa, after the District of Columbia . 103. Application of Medicaid waiver authority to all of the territories (a) In general Section 1902(j) of the Social Security Act ( 42 U.S.C. 1396a(j) ) is amended— (1) by striking American Samoa and the Northern Mariana Islands and inserting Puerto Rico, the Virgin Islands of the United States, Guam, the Northern Mariana Islands, and American Samoa ; (2) by striking American Samoa or the Northern Mariana Islands and inserting Puerto Rico, the Virgin Islands of the United States, Guam, the Northern Mariana Islands, or American Samoa ; (3) by striking , the limitation in section 1108(f), ; (4) by inserting (1) after (j) ; (5) by inserting except as otherwise provided in this subsection, after Notwithstanding any other requirement of this title