A federal appeals court on Wednesday ruled against Amazon.com Inc in a case that could expose the online retailer to lawsuits from customers who buy defective products from third-party vendors through its website.