Jim Chalmers has revealed the government found $20bn in savings to prevent national debt crossing the critical $1 trillion threshold for the first time.