Secretary of Defence Pete Hegseth said exempting oil drilling was a matter of national security.