; or (ii) any authorized intelligence or law enforcement activities of the United States. (B) Exception to comply with international obligations Restrictions under this subsection shall not apply with respect to a foreign person if admitting or paroling such person into the United States is necessary to permit the United States to comply with the Agreement regarding the Headquarters of the United Nations, signed at Lake Success, June 26, 194.7, and entered into force November 21, 1947, between the United Nations and the United States, or other applicable international obligations. (C) Exception for certain immediate family members (i) In general A covered individual shall not be subject to sanctions under this section if the President certifies to the appropriate congressional committees, in accordance with clause (ii), that such individual has a reasonable fear of persecution based on— (I) actual or perceived sexual orientation, gender identity, or sex characteristics; (II) race, religion, or nationality