NEW YORK (CBSNewYork/AP) — New York City can’t require preschoolers in city-regulated day cares to get a flu shot, a state judge ruled in a decision published early Thursday.

In blocking a 2013 city Department of Health and Mental Hygiene rule, state Supreme Court Justice Manuel Mendez sided with a group of mothers who sued last month, arguing that only the state Legislature has the authority to require certain immunizations.

“Most of these parents are educated consumers who are familiar with the literature and in consultation with their doctor have decided that for their child the risks outweigh the benefits,” Aaron Siri, who represented the mothers, told WCBS 880’s Marla Diamond.

City health officials said they would appeal.

“I am extremely disappointed by today’s decision,” said Health Commissioner Dr. Mary Bassett. “The vaccination requirement will save lives.

“Influenza kills an average of 24,000 people each year in the United States, and the virus is spread easily in child care settings to children and their families,” she said.

The city Department of Health and Mental Hygiene will appeal the decision, Bassett said in the statement.

The rule, passed by the Board of Health in the final days of former Mayor Michael Bloomberg’s administration, required more than 100,000 children between 6 and 59 months who attend city-regulated, nonfamily day care facilities to get a flu shot each year.

Under the rule, principals and day care operators could have refused children who could not document they were vaccinated and, beginning next month, those operators could have been fined between $200 and $2,000 for not following the rule.

About 20,000 children under 5 years old are hospitalized every year because of complications from the flu, and children younger than 2 years old most commonly suffer such complications, according to the federal Centers for Disease Control and Prevention. New Jersey and Connecticut have also required that children between 6 months and 5 years be vaccinated against the flu.

Mendez ruled that only elected officials have the power to order vaccinations other than the 11 already explicitly required by the state public health law.

Michelle Carroll, one of the mothers who sued to stop the flu vaccine, said the decision to give a child a flu shot should be left up to the parent and the pediatrician.

“I just think it’s important for people to remember that vaccines are drugs and just like any other drug, not every vaccine is going to be right for every single child,” she said.

But Dr. Tom Farley, Bloomberg’s former health commissioner, said the rule was intended not just to protect children from the flu, but also to prevent it from spreading.

“Of all the infectious diseases that are out there, influenza is either the worst or close to the worst,” he said. “This ruling really interferes with the Board Of Health’s responsibility to protect everyone’s health in New York City.”

(TM and © Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)