Ukraine and neighboring Romania signed an agreement Friday to work together on grain exports, following Russia’s departure last month from the U.N.-backed grain deal, which had allowed for the safe wartime transport of foodstuffs over the Black Sea. Ukraine is one of the world’s major grain producers and its exports play a vital role in global food security.