; or (B) otherwise under detention at United States Naval Station, Guantánamo Bay, Cuba. 8096. None of the funds appropriated or otherwise made available in this Act may be used to transfer any individual detained at United States Naval Station Guantánamo Bay, Cuba, to the custody or control of the individual's country of origin, any other foreign country, or any other foreign entity except in accordance with section 1034 of the National Defense Authorization Act for Fiscal Year 2016 ( Public Law 114–92 ) and section 1034 of the National Defense Authorization Act for Fiscal Year 2017 ( Public Law 114–328 ). 8097. None of the funds made available by this Act may be used in contravention of the War Powers Resolution ( 50 U.S.C. 1541 et seq.). 8098. (a) None of the funds appropriated or otherwise made available by this or any other Act may be used by the Secretary of Defense, or any other official or officer of the Department of Defense, to enter into a contract, memorandum of understanding, or cooperative agreement with, or make a grant to, or provide a loan or loan guarantee to Rosoboronexport or any subsidiary of Rosoboronexport. (b) The Secretary of Defense may waive the limitation in subsection (a) if the Secretary, in consultation with the Secretary of State and the Director of National Intelligence, determines that it is in the vital national security interest of the United States to do so, and certifies in writing to the congressional defense committees that, to the best of the Secretary's knowledge: (1) Rosoboronexport has ceased the transfer of lethal military equipment to, and the maintenance of existing lethal military equipment for, the Government of the Syrian Arab Republic. (2) The armed forces of the Russian Federation have withdrawn from Crimea, other than armed forces present on military bases subject to agreements in force between the Government of the Russian Federation and the Government of Ukraine. (3) Agents of the Russian Federation have ceased taking active measures to destabilize the