Meta faces a lawsuit alleging its AI-driven restructuring disproportionately affected workers during recent layoffs.