Presumably, they would arrest him. His actions being legal because he made them legal doesn't stop that, theyre taking over the government in this hypothetical. They would probably put like Bail Organa or someone in as temporary head of state to keep the politics going.