The New York City mayor, an avid sports fan, is reaping rewards from a city abuzz over the NBA Finals.