The president promised to spend nearly $2 trillion to rebuild America’s roads, rails and bridges, speed the transition to clean energy and provide high-speed internet for all.