You had the same problem you have everywhere; someone oversteps the legal power of their office, but nobody stops them from doing so, because all human institutions have a critical failing. They're staffed by humans.
The USA has been more resistant than most, but this is by no means immunity.