It's used in criminal courts 19 states and at the federal level by the disgression of the judge. Plus it's used in a bunch of "non-court but legal process" like for people on probation.
https://en.wikipedia.org/wiki/Polygraph#United_States
Interestingly (last paragraph of the link above) the US has indicted people for offering to teach other how to beat the test!?