The lawsuit ​says that the company relied on factors such as productivity and AI token usage when it slashed thousands of jobs earlier this year.