Ikea has agreed to pay $13.5 million to resolve claims that a wardrobe's defective design caused the death of a toddler, attorneys said.