In the event of a declaration of war or the declaration by the President of a national emergency in accordance with the National Emergencies Act (
50 U.S.C. 1601 et seq.) that requires use of the armed forces, the Secretary of Defense, without regard to any other provision of law, may undertake military construction projects, and may authorize the Secretaries of the military departments to undertake military construction projects, not otherwise authorized by law that are necessary to support such use of the armed forces.