As America’s aging roads fall further behind on much-needed repairs, cities and states are turning to artificial intelligence to spot the worst hazards and decide which fixes should come first.