This sort of ruling would never have been possible if the US labor force had not been flooded with millions of cheap young H-1Bs from India.
It also directly violates what the US Civi Rights Act and EEOC rules say.
“For decades, federal law has protected job seekers over the age of 40 from age discrimination. But in a major blow to older applicants on Wednesday, the 7th U.S. Circuit Court of Public Appeals ruled that the Age Discrimination in Employment Act (ADEA) only protects current employees and does not cover external applicants”.