Jim Chalmers is promising restraint ahead of a federal budget grappling with the economic weight of the war in the Middle East.