The Secretary of Defense and the Secretary of each military department may—
(1)
pay in advance for the expenses of conducting investigations in foreign countries incident to matters relating to the Department of Defense, to the extent such expenses are determined by the investigating officer to be necessary and in accord with local custom;
(2)
pay expenses incurred in connection with the administration of occupied areas;
(3)
pay expenses of military courts, boards, and commissions; and
(4)
reimburse the Administrator of General Services for security guard services furnished by the Administrator to the Department of Defense for the protection of confidential files.