Anthropic didn’t break the law when it trained its chatbot with copyrighted books, a judge said, but it must go to trial for allegedly using pirated books.