The courts made polygraphs submittable legal evidence used to convict people, and still use them on people under supervision (because lesser standards apply).
Precedent is often crap and wrong until someone can find a good case paired with good lawyers to rectify.
Edit: Throttled so editing to reply
Precedent is randomly set by whoever gets there first often with a random case and a defendant with zero funds desperate to minimize their situation (for example without the funds to challenge the legality of polygraph/flock versus polygraph/flocks paid 'experts'). Although now political people are trying to game the system and shop very thought out cases to specific friendly courts to help put their finger on establishing precedent. After building enough such cases in lower courts, moneyed interests then shop it to the next level. Then with enough at the next level, to the Supremes.
It's a pretty awful, unintentional by design and fairly random 'legal system' with a huge bias towards those with more money and or the huge disparity in power of the Federal government, it's prosecutors, trial tax and the ridiculousness of 'if you exercise your constitutional rights you risk an additional 20-50 years in prison' versus someone broke, whose life has already been ruined by time in jail (and their fight beaten out of them), just wanting to go home as soon as possible.
And when those disempowered have the courage to risk the trial tax and do happen to stumble upon a win you get the strategic use of either pleas bargains or dropping the case by prosecutors to prevent precedent, or the abuse by judges of 'as applied' rulings in order to again prevent precedent from being set even when the case was won.
One side has all the power. One side has huge threats (in the form of trial tax). One side literally holds in you prison and has 100% control over every aspect of your life as you try to fight them and uses things like diesel therapy or the many other ways the have to apply to break you down for 'being difficult'. One side has the power to just drop cases it if risks precedent they don't like. And one side has the power to label a case 'as applied' to prevent precedent they don't like. It's a pretty crap system if you want fair unmanipulated precedents to come out of it. It's a great system if you want money/federal prosecutors/judges to be able to put their finger on the scale and set the outcome.