The federal and Western Australian governments have signed off on a major infrastructure spending program that will fast-track investments in transport hubs, road and rail projects.