Notwithstanding paragraph (1)(B), Federal financial participation shall continue to be available for an individual who is receiving medical assistance in an institutionalized setting, or home and community-based services provided under a waiver under this section or section
1315 of this title that is in effect as of the effective date of the State plan amendment submitted under this subsection, as a result of a determination that the individual requires the level of care provided in a hospital or a nursing facility or intermediate care facility for the mentally retarded, without regard to whether such individuals satisfy the more stringent eligibility criteria established under that paragraph, until such time as the individual is discharged from the institution or waiver program or no longer requires such level of care.