Meta is facing a lawsuit alleging the company relied on artificial intelligence to identify employees for layoffs.