For years, career advisers pointed young workers toward the trades as an AI-proof path to middle-class wages. The labor market had other plans.