US labor market resilient; productivity rebounds in second quarter