Tariffs have protected some companies, but more often they’ve hit the parts and materials many factories need to make finished goods.