In general we pay for infrastructure with taxes. It's getting harder and harder to argue that no software counts as infrastructure: "An organizational structure needed for the operation of a society or enterprise." The current President talks about tossing money at infrastructure; maybe he'd like to spend an outrageous 1% of that on software. It's nice when volunteers fill in potholes or replace bent railway ties - but it's no way to run a railroad.