The day before Mr. Mattis came to work at the Defense Department, he issued a statement to the Pentagon work force that cast the United States as a bulwark of the international order and the guardian of important alliances.