; or (B) transactions that are necessary for, or related to, the activities described in subparagraph (A). (2) Compliance with international obligations and law enforcement activities Sanctions under this Act shall not apply with respect to an alien if admitting or paroling such alien is necessary— (A) to comply with United States obligations under— (i) the Agreement between the United Nations and the United States of America regarding the Headquarters of the United Nations, signed at Lake Success June 26, 1947, and entered into force November 21, 1947; (ii) the Convention on Consular Relations, done at Vienna April 24, 1963, and entered into force March 19, 1967; or (iii) any other international agreement; or (B) to carry out or assist law enforcement activity in the United States. (3) Exception for intelligence activities Sanctions under this Act shall not apply to— (A) any activity subject to the reporting requirements under title V of the National Security Act of 1947 ( 50 U.S.C. 3091 et seq. )