The justices struggled to decide how to deal with documents that include both legal and business advice.