A US court has ruled Anthropic was not breaching copyright rules when it trained its AI model on books.