Logline
Commander Una Chin-Riley faces court-martial along with possible imprisonment and dishonorable dismissal from Starfleet, and her defense is in the hands of a lawyer who’s also a childhood friend with whom she had a terrible falling out.
Written by Dana Horgan
Directed by Valerie Weiss
My interpretation is that since the planet had just been granted provisional Federation membership, basically the same local government was in charge.