Neodymium is critical to making the wheels of a Tesla spin or creating sound in Apple’s Airpods, and China dominates the mining and processing of this rare-earth mineral. So the U.S. and its allies are building their own supply chain. Photo illustration: Clément Bürge/WSJ