The tech giant just became America's first trillion-dollar company, but it wasn't thanks to the iPhone.