; and (B) by adding at the end the following new subsection: (jj) Increased FMAP for mental health and substance use services furnished to inmates (1) In general Notwithstanding any other provision of this title except for paragraph (3), the Federal medical assistance percentage for a State, with respect to amounts expended by the State for medical assistance for mental health and substance use disorder services furnished to an eligible inmate (as such terms are defined in section 1902(nn)) shall be equal to 100 percent. (2) Exclusion of expenditures from territorial caps Any payment made to a territory for expenditures for medical assistance that are subject to the Federal medical assistance percentage specified under paragraph (1) shall not be taken into account for purposes of applying payment limits under subsections (f) and (g) of section 1108. (3) Requirement to reinvest additional funds As a condition for the receipt of the increase under paragraph (1) to the Federal medical assistance percentage of a State, the State shall demonstrate to the satisfaction of the Secretary that the State will use the Federal funds attributable to such increase only for the following purposes: (A) To improve health information technology and data sharing between State Medicaid programs, jails and prisons, and community-based providers and support organizations. (B) To increase the treatment capacity of community-based providers who are particularly attuned to, and able to serve, the specific needs of individuals who are involved with the justice system or at risk of becoming involved in the justice system. (C) To expand or enhance community-based reentry services and supports provided by the State to incarcerated and formerly incarcerated individuals, including services and supports designed to meet the health-related social needs of such individuals. . (2) CHIP (A) In general Section 2105 of the Social Security Act ( 42 U.S.C. 1397ee ) is amended— (i) in subsection (b), by striking (11) and inserting (11), (12), and (13)