Marathon negotiations lead to a new round of much-needed funding and pledges for debt relief, with conditions.