The Silicon Valley giant became the first U.S.-listed company to surpass $1 trillion in stock-market value,underscoring the iPhone maker’s explosive growth and its role in fueling the rise of the technology industry to the forefront of the global economy.