There is a highway trust fund paid into with fuel taxes, state taxes are the highest, around 55 cents per gallon, Federal is 18.5 cents I think.
Congress adds to spending with direct spending bills like the recent "infrastructure bill" they passed. And Congressmen can get special funding for projects in their districts.
The toll road idea is another approach, many early freeways in the north were (and remain) toll roads.