; and (D) no payment shall be made to a State under section 1903(a) or 2105(a) of such Act ( 42 U.S.C. 1396b(a) ; 42 U.S.C. 1397ee ) with respect to medical assistance or child health assistance for any item or service furnished on or after such date. (2) Transition In the case of inpatient hospital services and extended care services during a continuous period of stay which began before the date on which benefits are first available under section 106(a), and which had not ended as of such date, for which benefits are provided under title XVIII of the Social Security Act, under a State plan under title XIX of such Act, or under a State child health plan under title XXI of such Act, the Secretary shall provide for continuation of benefits under such title or plan until the end of the period of stay. (3) Continued coverage of long-term care and other certain services under Medicaid (A) In general This subsection shall not apply to entitlement to medical assistance provided under title XIX of the Social Security Act for— (i) institutional long-term care services (as defined in section 1948(b) of such Act); or (ii) any other service for which benefits are not available under the Medicare for All Program and which is furnished under a State plan under title XIX of the Social Security Act which provided for medical assistance for such service on January 1, 2023. (B) Coordination between Secretary and States The Secretary shall coordinate with the directors of State agencies responsible for administering State plans under title XIX of the Social Security Act to— (i) identify items and services described in subparagraph (A)(ii) with respect to each State plan