More money than expected was collected through tax and higher National Insurance Contributions, although public sector spending also increased.