It only costs $1 mil per mile per lane to add induction charging to highways, it costs upwards of $10-$15 mil per mile to build out new rail. Just the cost of the install costs not counting land acquisition costs more than putting induction charging into highways.
To put this in perspective to electricity the entirety of I95 from ME to FL, for two lanes each side, would only cost $8 bil. There is equipment out there that can do this in current roadways at one mile per night working. It digs, lays the charging cable, and seals up the road all in one pass.
To pay back the cost to retrofit the federal government could sell the electricity to the consumer for a small $0.02 upcharge to help maintain roads. Basically the current version of the gas tax.