Ethics of Automated Labor

When is automation beneficial for humans, and when is it not beneficial? Do employers have a moral responsibility to hire humans even if robots can do the work more effectively? Is there anything likely to stop robots from taking all jobs? Are you spending college learning skills that will be obsolete because of automated labor? To what extent can governments control the advance of automated labor? Should governments attempt to control and regulate the labor market, or should we take a more libertarian approach and let markets sort it out—even if the vast majority of humans become unemployable compared to robot labor?