A broad gauge of international commodity prices is approaching its highest level in 18 years, driven by fighting in the Middle East, growing demand tied to artificial intelligence, and declining confidence in the dollar, threatening global inflation.