Mayors in New York City, which has America’s largest Jewish population, have long been visible supporters of Israel, often visiting the country.