A law in New York that removed religious exemptions to vaccines for children attending school will remain in effect, at least for now, after a state judge in Albany said she wasn’t persuaded by claims that the state Legislature acted with hostility toward religious groups.

Albany County Supreme Court Justice Denise Hartman wrote in the decision that, at this point, the health risk to individuals who aren’t vaccinated outweighed the claims brought against the law.