The same thing that happened the last time machines replaced most of the labor.
Billions will live in misery and want, a few will become so obscenely wealthy they rival most governments, a world war happens when the contradictions between the old powers and new powers can no longer be managed, revolutions happen just about everywhere when the people have nothing left to lose and the rich are hung from the lamp posts. Give it between 10 to 100 years.
This isn't a new problem that has a technological solution. It is a sociological problem where the people with the power to solve it are the ones who benefit most from the problem not being solved.