Dollar gains as jobless claims point to resilient labor market