When sworn in on Thursday, the Chilean-born mayor will reflect the city’s modern reality: multilingual, diverse and shaped by immigration.