An agreement allowing Ukrainian grain exports to ship through the Black Sea to help ease global hunger has been extended for two months just a day before its expiration.