Robots have replaced millions of American workers. As humanoid robots improve, will they work alongside people — or replace them?