Restaurant chains experimented with automation this year as the labor crunch pressured their profits.