An important case due to reach the Supreme Court soon seeks to test the legality of collecting a massive database of recorded TV and radio programming and selling access to it to news outlets, scholars and other researches, government agencies, and the police.