The Secretary of the Interior may, in case of a national emergency, close the said Fort McHenry and it may be used for any and all military purposes during the period of the emergency and for such period of time thereafter, as the public needs may require.