The social platform accused Perplexity and its data partners of unlawfully harvesting user content to train AI systems.