Apple announced a $500 billion US investment over the next five years, creating 20,000 jobs and expanding data centers.