With the purchase, the e-commerce giant is gaining a critical foothold with younger shoppers and will expand its share in luxury resale.