The greenback has rallied sharply against most of the world's currency, adding to economic challenges already caused by rising consumer prices.