I suspect we have different definitions of “legal system” in mind. You are correct that such things cannot be admitted as evidence into a court case, but law enforcement agencies still use the machines and do their best to lie to unknowing victims that it will be admitted to court.
They are often used in pre-employment screening for sensitive government jobs. Yes, it would be illegal for a private employer to do this.