Fewer Americans applied for unemployment benefits last week as layoffs remain low despite a weakening labor market.