The agreement appears to mark a revival of a 2022 agreement to ensure safe transit via Ukraine’s Black Sea ports.