Over the last three decades, the growth of tech companies has driven a shift in the ranking of the most valuable companies in the U.S.