Right? /s
At the very least they're using federal funds for administrative costs.
> Medicaid, state and federally government-funded health care coverage for the country’s poorest, is largely available only to some non-citizens, including refugees and asylum seekers, survivors of human trafficking, and permanent residents. Some states, like New York, provide Medicaid coverage for children and pregnant people, regardless of their immigration status. States report their Medicaid expenditures and data to the federal government, which reimburses them for some of the costs.
The Trump admin is aggressively deporting refugees and asylum seekers who entered legally.
As a related aside, Federally-funded California clinics are about to start requiring proof of citizenship. This is causing a panic.
Also, due to the massive cost of providing care to undocumented migrants, Newsom is about to freeze all registrations for Medi-Cal (so the message is get in now before the gates close). He's also proposing charging undocumented migrants a modest premium.