The Treasury sold euros and bought yen as the Japanese currency hovered near a 40-year low.