Apple, facing tariffs on Chinese imports, says it will invest $500 billion in US facilities