The iPhone maker, which nearly went bankrupt in the 1990s, is now the most valuable tech company on the planet.