It's not effectively illegal. That's a mis-characterization of both current law and that lawsuit in particular.
The court ruled that "the company's employment requirements did not pertain to applicants' ability to perform the job". And it was more specific than that. If such tests disparately impact ethnic minority groups, businesses must demonstrate that such tests are "reasonably related" to the job for which the test is required.
That does not make IQ tests effectively illegal. Demonstrate that anyone with an IQ lower than X cannot perform the job in question, and you're good. The actual "problem" is that other tests are far better at determining if you will do well in a job role. So companies use the better tests. If there were a job for which IQ was highly related to being able to do the job, then companies would surely use IQ as the test for that job.
To give a concrete example, why would I give a programmer an IQ test when I can give them a programming test? I'll take it further: an extremely high IQ is a deficit for many developer roles. Most of the genius programmers I personally know write code no one else can maintain, and are often condescending - usually without even knowing it, which hurts team moral. I love those guys and they often inspire me, but many of them would make bad employees if the job required writing average business programs on a large team. A programming test would reveal that when you see their code is very clever, and also includes an internal compiler so they can write the solution in a high level language they invented... There is good reason my very smartest programming friends are often unemployed. When a genius programmer is called for though, boy do they shine.
So it's not a case of companies avoiding the use of a good test due the law and replacing that good test with less effective proxies, as you first suggested. The real effect of that ruling and the law is that companies use tests that can be proven to demonstrate whether or not you can perform the job. That's better for everyone.