Former police captain Eric Adams easily won the race for New York mayor Tuesday, and Boston elected its first woman and Asian American to the city’s top job as voters across the U.S. picked local leaders who were largely defined by their stances on police and crime.