Query: What entity drew up an agreement that drastically reduced the threat of military action against Egypt?
Context: He believed, however, that the UK would not be able to intervene militarily for at least two months after the announcement, and dismissed Israeli action as "impossible". 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. According to Heikal, after this agreement, "Nasser estimated that the danger of invasion had dropped to 10 per cent".