AI firm Anthropic has secured temporary legal relief in its dispute with the U.S. government over the military use of its models.