Artificial-intelligence companies are writing huge checks for chips, memory, specialized glass fiber and more, and they have begun to outduel Apple in the race to secure components. Suppliers ...