Okay, I think I now see your point.
There's an important difference between a private company choosing to write off a loss or a charitable organization viewing service to those who can't pay as part of its charitable mission, on the one hand, and a state levying a special tax on those who can pay for health care to pay for those who can't pay.
Yes, I know that the cost from those who can't pay their medical bill gets passed on to everybody else who uses that hospital, but that's a decision by the owners or trustees of the hospital that would be taken into account by patients in a truly capitalist health care system. I realize that's not the way things work now due to the realities of insurance, but the solution is to move toward more capitalism in health care, not less.
You did get my point on that?
The government should offer to reimburse all hospitals for the free care they mandate on all emergency rooms, and can require the hospitals to identify who the patients to get it. The hospitals in sanctuary cities can turn down the money and not report the illegals if they want, but their patients may not be happy about being forced paying for it just to protect the illegals. And in fact all hospitals take medicare and medicaid I bet, so add that to the conditions.
I always tell libertarians, ‘freedom in a welfare state is bankruptcy’. Cut off your welfare first then you can be free.