The Treasury will provide no more than £330 million to the Scottish Government to cover the impact on the public sector of the increase in national insurance.