Dollar holds onto gains as U.S. data supports