; or (B) has taken and is continuing to take significant verifiable steps toward terminating activities or transactions subject to sanctions under this section; and (2) the President has received reliable assurances from the foreign person or agency or instrumentality (as the case may be) that it will not carry out any activities or transactions subject to sanctions under this section in the future. (g) Waiver The President may waive, on a case-by-case basis and for renewable periods of not more than 180 days, a requirement under this section to impose or maintain sanctions with respect to a foreign person or agency or instrumentality of a foreign state if the President— (1) determines that the waiver is in the national security interest of the United States; and (2) not less than 15 days before granting the waiver, submits to the appropriate congressional committees a report on the waiver and the justification for the waiver. (h) Effective date This section shall take effect on the date that is 180 days after the date of enactment of this Act and apply with respect to activities and transactions described in subsection (a) that are carried out on or after such date of enactment. (i) Sunset This section shall terminate on the earlier of— (1) 30 days after the date on which the President certifies to the appropriate congressional committees that Hamas and the Palestinian Islamic Jihad, or any successor or affiliate thereof— (A) are no longer designated as a foreign terrorist organization pursuant to section 219 of the Immigration and Nationality Act ( 8 U.S.C. 1189 ); (B) are no longer subject to sanctions pursuant to— (i) Executive Order 12947 ( 50 U.S.C. 1701 note; relating to prohibiting transactions with terrorists who threaten to disrupt the Middle East peace process); and (ii) Executive Order 13224 ( 50 U.S.C. 1701 note; relating to blocking property and prohibiting transactions with persons who commit, threaten to commit, or support terrorism)