The courts have to apply the law. If the states and federal government legislate that only legal citizens can receive welfare...
This is the right approach.
“The courts have to apply the law.”
Does that apply to the SCOTUS too, or would they be able to simply void the laws, based on their interpretation of the Constitution? I don’t know — it just seems like a big known unknown.