A federal judge granted final approval to Anthropic’s $1.5bn settlement with authors over pirated books, the largest copyright recovery in US history.