SÃO PAULO—If São Paulo’s highly unpopular mayor, Fernando Haddad, were the boss of San Francisco, Berlin or some other forward-looking metropolis, he might be regarded as an urban visionary.

Since taking office in 2013, Mr. Haddad has pushed through controversial recycling measures and backed plans to house and rehabilitate the city’s burgeoning population of homeless crack addicts.

But...