The order came after Anthropic publicly pushed back against the Pentagon, which has been demanding unrestricted military use of its AI technology.