Critics say a bill that would require hospitals to ask about citizenship could dissuade some migrants from getting medical care.