AI company Anthropic has agreed to pay $1.5 billion to settle a lawsuit from authors who accused the company of using pirated books to train its Claude chatbot.