How a liberal mayor learned to embrace Jews’ international and cultural concerns to court their vote, and changed New York City politics