NEW YORK — New York City Mayor Bill de Blasio is endorsing Bernie Sanders for president, a move that puts de Blasio in a position to become a leading voice in opposition to Sanders’ newest rival, Michael Bloomberg, his predecessor in leading the nation’s largest city. De Blasio, an unabashed liberal who was elected in 2013, campaigned for Sanders in Nevada over the weekend, according to the Sanders campaign.