qnli question: What entity drew up an agreement that drastically reduced the threat of military action against Egypt? sentence: In early October, the UN Security Council met on the matter of the canal's nationalization and adopted a resolution recognizing Egypt's right to control the canal as long as it continued to allow passage through it for foreign ships.