RALEIGH, N.C. — Lists that identify the books, music and movies individual customers bought from online retailer Amazon.com Inc. are protected from North Carolina tax collectors, a federal judge has ruled.