Although the nation has seen record federal investment in infrastructure under President Joe Biden, the majority of the funds are flowing to roads and bridges—not to projects that will clean up the transportation system, those tracking the spending have found.