The federal budget deficit grew by 40% in the first half of this year to reach 2.8% of gross domestic product.