The e-commerce giant’s latest valuation makes it the second firm in history to reach the coveted $1trn mark