US long-term unemployment tops 1.8 million as labor market weakens