A federal judge has ruled in favour of artificial intelligence company Anthropic in its legal battle against the Pentagon