A New York judge has approved discovery, allowing the plaintiffs to review Fox News's internal records