; and (B) the Secretary of Energy, in coordination with the Director of the Office of Management and Budget and in consultation with the Secretary of Defense, the Secretary of Homeland Security, the Director of National Intelligence, and the heads of other appropriate Federal agencies, as determined by the Secretary of Energy, determines— (i) involves covered equipment designed, developed, manufactured, or supplied by persons owned by, controlled by, or subject to the jurisdiction or direction of a foreign adversary; and (ii) poses an undue risk of catastrophic effects on the security or resiliency of defense critical electric infrastructure in the United States. (2) Mitigation measures (A) In general The Secretary of Energy, in consultation with the heads of other Federal agencies, as appropriate, may— (i) in accordance with subparagraph (B), approve a transaction or class of transactions prohibited under paragraph (1); and (ii) design or negotiate measures to mitigate any concerns identified in making determinations under paragraph (1)(B) with respect to that transaction or class of transactions. (B) Precondition to approval of otherwise prohibited transaction The Secretary of Energy shall implement the measures described in subparagraph (A)(ii) before approving a transaction or class of transactions that would otherwise be prohibited under paragraph (1). (3) Application (A) In general The prohibition described in paragraph (1) shall apply to a transaction described in that paragraph regardless of whether— (i) a contract has been entered into with respect to that transaction before the date of enactment of this Act; or (ii) a license or permit has been issued or granted with respect to that transaction before the date of enactment of this Act. (B) Contrary law The prohibition described in paragraph (1) shall apply to each transaction described in that paragraph only to the extent not otherwise provided by— (i) another statute