The law is local...legislated in NYS and signed by the Gov.. Nothing to do with the Constitution.
I believe that Changing laws after the fact is protected by the constitution. Even at the state and local level.