Transition from Illegal Regimes under International Law