; or (B) the national emergency described in section 101 has ended. (2) National security waiver The President may waive the application of sanctions under this subtitle with respect to a foreign person if the President determines that the waiver is in the national security interest of the United States. (c) Exceptions (1) Exception for intelligence activities This subtitle shall not apply with respect to activities subject to the reporting requirements under title V of the National Security Act of 1947 ( 50 U.S.C. 3091 et seq. ) or any authorized intelligence activities of the United States. (2) Exception for compliance with international obligations and law enforcement activities Sanctions under section 102(c) shall not apply with respect to an alien if admitting or paroling the alien into the United States is necessary— (A) to permit the United States to comply with the Agreement regarding the Headquarters of the United Nations, signed at Lake Success on June 26, 1947, and entered into force November 21, 1947, between the United Nations and the United States, or other applicable international obligations of the United States