AUGUSTA, Maine — A bill to end Maine's religious and philosophical exemptions to vaccines is heading to the governor's desk.

The Senate voted 19-16 Thursday to enact the bill.

Democratic Gov. Janet Mills' administration has backed the bill ending non-medical vaccine opt-outs by 2021 for schoolchildren, as well as nursery school and health care facility employees.

RELATED: Protesters rally against vaccination bill at Maine Statehouse
RELATED: Maine House gives its final OK to some vaccine opt-outs

The National Conference of State Legislatures says Maine would become the fourth state without religious exemptions.

Maine's Senate previously supported protecting religious exemptions. But the original bill later passed the House and Senate.

Health officials say Maine's exemption rates are rising and endanger children who can't be vaccinated for medical reasons.

POLITICAL BREW: Budget clock, buying CMP, vaccines, Senate race
RELATED: Madison student contracts, recovers from measles

Maine confirmed its first case of measles since 2017 involving a vaccinated child who's recovered.

Opponents say the bill infringes on parental rights and stigmatizes children.