The upgrades will allow traffic lights to adjust in real time based on vehicle volume, easing congestion on some of the city’s busiest streets.