; and (B) by inserting , and (XVIII) the medical assistance made available to an individual described in subparagraph (A)(ii)(XXIII) shall be limited to medical assistance described in subsection (k)(1) before the semicolon. (2) Section 1903(f)(4) of the Social Security Act ( 42 U.S.C. 1396b(f)(4) ) is amended by inserting 1902(a)(10)(A)(ii)(XXIII), after 1902(a)(10)(A)(ii)(XXII), . (3) Section 1905(a) of the Social Security Act ( 42 U.S.C. 1396d(a) ) is amended in the matter preceding paragraph (1)— (A) by striking or at the end of clause (xvi); (B) by inserting or at the end of clause (xvii)