The sanctions described in paragraphs (1), (2), and (3) of subsection (a) of this section shall apply to contracts, agreements, and licenses without regard to the date the contract or agreement was entered into or the license was issued (as the case may be), except that such sanctions shall not apply to any contract or agreement entered into or license issued before the date of the presidential determination under section
5604
(a)(1) of this title if the President determines that the application of such sanction would be detrimental to the national security interests of the United States.