US dollar reverses course after climbing for 2 months