Would it face a constitutional challenge in the courts?
One would hope. But the Court doesn’t usually care much about the Constitution anymore. They only care about precedent, i.e. they don’t actually look at what the Constitution says they base their opinions off other decisions and standard procedure.
Welfare is unconstitutional but the Court would never overturn the entitlements system in a case.