An unexpected jump in the tax take and less spending than forecast has delivered a $6 billion boost to the federal budget.