What you are describing is the judiciary in any functioning democracy. Separation of powers requires an independent judiciary system.
They have to be unelected, so they keep their independence when evaluating if the laws are being applied according to the written law.
> Now that's okay to a degree, but the question is: where does the buck stop?
With proper separation of powers and an independent justice system, like the one that judged Le Pen and found her guilty.