A trove of newly released documents reveals Meta’s plans to use book piracy site LibGen to train its AI models.