Key point to remember is that this is a question of the New York state constitution, not the 2A of the U S Constitution.
As for the injunction, there ay have been no option for the judge to issue an injunction before this, dependingon NY law.
Sorry, I'm an Ohio lawyer, and know nothing of NY law. I'll try researching some and get back with you all.