Bokförlaget Bloomsbury, som ger ut Harry Potter-böckerna, har nått en mångmiljonförlikning med AI-bolaget Anthropic.