The number of Americans filing for unemployment benefits rose, suggesting some loss of momentum in the labor market.