Judge rules Anthropic can legally train AI on copyrighted material