Amazon may be liable for injuries caused by defective products sold by third-party vendors, court rules