Government finances in surplus, but trends point to future deficits