SACRAMENTO, Calif. – California parents may soon be forced to vaccinate their children against 10 different diseases if they want their children to attend school.

The state Senate passed Senate Bill 277 this week in a 25-10 vote to remove parents’ rights to exempt their children from immunization shots for religious or personal reasons. The move is a reaction to an outbreak of measles at Disneyland that affected 136 California residents, the San Jose Mercury News reports.

The bill gained approval after lawmakers tweaked the legislation to grandfather in students whose parents have opted them out of vaccinations. It would require children to be vaccinated before entering kindergarten, and maintains exemptions for medical reasons, but would eliminate existing exemptions for religious or personal reasons. If approved, California would join only two other states – Mississippi and West Virginia – that do not offer those exemptions, according to the news site.

MORE NEWS: From Classroom to Consulate Chef: Culinary Student Lands Dream Job at U.S. Embassy in Paris

As hundreds of angry residents spoke out against the proposal, lawmakers agreed to allow young students with current personal belief exemptions to avoid vaccinations until the seventh grade, and allow those with exemptions above the seventh grade to complete high school unvaccinated.

The bill’s sponsor, state Sen. Benjamin Allen, told the Los Angeles Times the measure “is about increasing immunization rates so no one will have to suffer from vaccine-preventable diseases.”

Co-sponsor, Sen. Richard Pan alleges “vaccines are needed to protect us, but that protection has been eroding.”

But Republican lawmakers have spoken out against the legislation for a variety of reason, echoing concerns from parents that the bill tramples their personal and religious freedoms.

“I don’t believe the crisis we have seen rises to the level to give up the personal freedoms we enjoy in a free country,” Senate Republican leader Robert Huff told the Times.

Sen. Joel Anderson said parents have legitimate religious reasons for opposing vaccinations, including the use of cells from aborted fetuses.

MORE NEWS: Know These Before Moving From Cyprus To The UK

“What this bill says is we don’t have a right to practice our faith,” he said.

Other objections center on the facts that students of parents who object to vaccinations will essentially be forced out of the school system, forcing parents to homeschool them. Some also believe lawmakers are pandering to the pharmaceutical industry providing the vaccines, the Times reports.

The underlying current, however, is a resentment from parents of government further reaching its tentacles into their lives.

“It tells deeply devout families that the government thinks it knows better,” Sen. Mike Morrell, who voted against the bill, told the Mercury News.

California Gov. Jerry Brown has not taken a formal position on the bill, but some believe its passage in the Senate is a sign it could ultimately become law during the current legislative session.

“I would be surprised if he didn’t sign it, because of the public health issues involved,” Claremont McKenna College politics professor Jack Pitney said. “I think the governor, on one hand, is sensitive to parental rights, but also sees public health as a major responsibility of his.

“The anti-vaccine folks are going to make a very hard push, but passage in the Senate is a good sign it will become law,” Pitney told the Mercury News. “Sen. Pan made changes that made it more acceptable to some of the critics and that should greatly improve its changes in the Assembly.”

Regardless of the changes, however, many parents are devoted to derailing the bill and plan to take their case to the Assembly in coming weeks.

“This is too major an issue to let go now,” opponent Janelle Lewis told the Times. “It’s a dangerous and unnecessary bill that should never have even been put forward.”