; 130 Stat. 2391) is amended by striking fiscal year 2017 and inserting any of fiscal years 2017 through 2021 . 1035. Authority to transfer individuals detained at United States Naval Station, Guantanamo Bay, Cuba, to the United States temporarily for emergency or critical medical treatment (a) Temporary transfer for medical treatment Notwithstanding section 1032 of the National Defense Authorization Act for Fiscal Year 2017 ( Public Law 114–328 ), as amended by section 1031 of this Act, or any similar provision of law enacted after September 30, 2015, the Secretary of Defense may, after consultation with the Secretary of Homeland Security, temporarily transfer an individual detained at Guantanamo to a Department of Defense medical facility in the United States for the sole purpose of providing the individual medical treatment if the Secretary of Defense determines that— (1) the medical treatment of the individual is necessary to prevent death or imminent significant injury or harm to the health of the individual; (2) the necessary medical treatment is not available to be provided at United States Naval Station, Guantanamo Bay, Cuba, without incurring excessive and unreasonable costs; and (3) the Department of Defense has provided for appropriate security measures for the custody and control of the individual during any period in which the individual is temporarily in the United States under this section. (b) Limitation on exercise of authority The authority of the Secretary of Defense under subsection (a) may be exercised only by the Secretary of Defense or another official of the Department of Defense at the level of Under Secretary of Defense or higher. (c) Conditions of transfer An individual who is temporarily transferred under the authority in subsection (a) shall— (1) while in the United States, remain in the custody and control of the Secretary of Defense at all times