A federal judge approved Anthropic's $1.5 billion settlement with authors over pirated books used in AI training.