Place it at the very end of a scene, after the argument or evidence has played out, so it closes the moment. Build tension first with a dramatic dun dun dun sting, then let the gavel fall as the final beat, and follow it with a short air horn only if the verdict is meant as a celebration.