A federal judge in San Francisco has ruled that roughly 150 older workers who were laid off by social media platform X when Elon Musk acquired the company can sue for age discrimination as a class, exposing the company to millions of dollars in potential damages.