It's a political stunt. They put the deadline far enough in the future that they don't actually have to do anything.
And of course, the article states: "New York will be required to get 70 percent of its electricity from renewable sources by 2030, and shift entirely to carbon-free power a decade later."