The president has slashed the federal bureaucracy and reoriented much of the national security apparatus to help with his immigration crackdown.