Deal follows days of rancour over the proportion of grants compared to loans repayable by the fund's beneficiaries.