The New York City left won an astonishing victory over Amazon. The triumph holds lessons for leftists everywhere.