The AI spending surge is providing a big boost for semiconductor and software giants like Google parent Alphabet , while companies from airlines to restaurants and food manufacturers are struggling to navigate an erratic U.S. trade policy which is boosting costs, upending supply chains and hurting consumer confidence.