Blocking someone from entering a house of worship is now a crime in New York under a law approved after a series of raucous demonstrations outside synagogues