Artificial intelligence has revived an old American anxiety: that technology will destroy livelihoods faster than it creates opportunities.