The U.S. government is urging tech companies to invest domestically, prompting Apple to pledge $500 billion over the next four years in areas like high-end…