Extra billions of dollars will be poured into a suburban rail loop as part of Treasurer Jim Chalmers' fifth federal budget.