The president and Secretary of Defense Pete Hegseth praised the operation as an emblem of their military philosophy.