The President.. is the "Commander in Chief”… His authority to classify and control access to information bearing on national security and … access to such information flows primarily from this constitutional investment of power in the President, and exists quite apart from any explicit congressional grant.
https://supreme.justia.com/cases/federal/us/484/518/
...