A global shortage of computer chips is threatening to eat into the technology giant’s profits.