No it does not. Even if you break the law because you were doing something for the greater good does not change the fact that you broke the law.
Shojo made a vow when he took the title and he swore to uphold the laws of Azure City. He broke those laws. So if he lived he would need to be tried and have a chance to explain why he did what he did. I am pretty postive that saving the world would either get him aquited or a suspended sentence and a parade with ballons.
If he is a wise leader he would understand the importance of allowing himself to be tried to show that number 1 he is not above the law and 2 and by facing and answering to his crime can lay the groundwork for changing the laws he broke.
Violating laws because they are inconvient even if you are doing it for all the right reasons does change the fact that you are guilty of breaking the law.
At this point he has not saved the world amd there are arguments that there could have been other steps he could have taken to save the world.
Besides think of the slippery slope this creates it says that laws are not important and should be able to be broken without consquence because you were doing for a noble reason.