The Ukraine Black Sea grain deal has been extended for two more months, one day before Russia could have quit the pact over obstacles to its grain and fertilizer exports.