Hegseth’s directive, characterized as an effort to rein in a bloated bureaucracy, follows a purge of top military leaders soon after Trump returned to office.