; and (B) in section 2520(d), by amending paragraph (3) to read as follows: (3) a good faith determination that section 2511(3), 2511(2)(i), or 2511(2)(j) of this title permitted the conduct complained of; ; (2) in chapter 121— (A) in section 2702— (i) in subsection (b)— (I) in paragraph (8), by striking the period at the end and inserting ; or ; and (II) by adding at the end the following: (9) to a foreign government pursuant to an order from a foreign government that is subject to an executive agreement that the Attorney General has determined and certified to Congress satisfies section 2523. ; and (ii) in subsection (c)— (I) in paragraph (5), by striking or at the end; (II) in paragraph (6), by striking the period at the end and inserting ; or ; and (III) by adding at the end the following: (7) to a foreign government pursuant to an order from a foreign government that is subject to an executive agreement that the Attorney General has determined and certified to Congress satisfies section 2523. ; and (B) in section 2707(e), by amending paragraph (3) to read as follows: (3) a good faith determination that section 2511(3), section 2702(b)(9), or section 2702(c)(7) of this title permitted the conduct complained of; ; and (3) in chapter 206— (A) in section 3121(a), by inserting before the period at the end the following: or an order from a foreign government that is subject to an executive agreement that the Attorney General has determined and certified to Congress satisfies section 2523