BEIJING—China is imposing new restrictions on chemicals used in the production of fentanyl, a move long sought by the U.S. that signals Beijing’s desire to keep open an important diplomatic channel with Washington ahead of November’s presidential election. The status of the chemicals has proven a diplomatic sticking point for the past two and half years, and the latest move …