Under the contract, all city-owned buildings, streetlights and facilities would run on renewable energy starting in 2022, supporting the city’s climate goals.