So I'd agree that in theory this is the good and proper state of affairs, criminal Jedi prosecuted by the civilian government rather than being handled internally behind closed doors by their peers and colleagues who may be inclined to shield them from consequences. But in the context of this specific trial the Jedi are not doing the moral thing here. It is made clear that under a less authoritarian and more reasonable government, the Jedi would not hand their own over, they would handle the matter internally. Handing Ahsoka over is a sign of weakness, an indication of how much power Palpatine has over them now.
That entire arc is really just hammering in that the Empire is already here and Palpatine has basically already won.