A court has ruled Amazon is liable for defective products, including those sold by third-party sellers.