New York is set to eliminate the religious exemption allowing parents to prevent their children from receiving vaccinations, after the state Legislature voted to remove the exemption during a contentious day at the state Capitol on Thursday.

The bill was signed almost immediately by Gov. Andrew Cuomo, who had said earlier this week that he supported the measure. The new law takes effect immediately.