Require that companies that "eliminate" jobs with automation offer those who have been laid off full funding (with obvious limitations, no $100,000 private education) to cover either an Associates degree, Bachelors degree, or an apprenticeship (basically sponsor them so that they are more appealing to unions and companies that offer an apprenticeship program). That gives people a cushion and opportunity to move to a new job, limiting the impact of transitioning from their old position that was removed.