Investment in infrastructure can help save lives and improve economic productivity. But state legislators don’t always make transportation spending a priority.