Chipmaker Intel said Friday it will invest $20 billion to build a new factory in Ohio, an attempt to help alleviate a global shortage of chips powering everything from phones to cars to home appliances while also signaling the giant company’s commitment to manufacturing crucial technology products in the U.S.