Here’s an HHS page on the eligibility of aliens to receive federal benefits:
Hint - it’s not just undocumented aliens who are ineligible, but also large numbers of legal immigrants.