Deals agreed with the two parties to ease the path of the Budget will cost the Scottish Government £16.7 million.