The layoffs signal how the AI boom is translating from hype into workforce changes, fueling long-held concerns among workers and economists that the technology could eliminate roles even as it boosts productivity and profits.