A US judge ordered OpenAI to hand over 20 million de-identified ChatGPT logs to news publishers in a high-profile copyright case.