International Business Machines plans to invest $150 billion in the U.S. over the next five years as tariffs threaten to make international manufacturing more expensive.