The U.S. dollar fell Wednesday after the consumer-price index for June showed the rate of inflation slowing to its lowest pace since 2021.