The tech company Anthropic’s AI technology was used by Chinese-backed hackers trying to breach foreign governments and major corporations.