Hegseth said the move was about “restoring the warrior ethos” in the military.