New York’s recently enacted law that barred parents from citing religious concerns to avoid having their children vaccinated before attending school has been upheld as constitutional by a state judge in Albany, who tossed a lawsuit against the measure this week.

Albany County Supreme Court Justice Denise Hartman, in a decision not previously reported, rejected arguments that the law infringed on multiple parts of the U.S. Constitution.