Is it not obligatory for the governments of the present day Muslim majority countries to rule the way Umar bin al-Khattab did following the Islamic law as God commanded in the Qur'an?
No government has the right to legalize any act which was committed by any ruler if the act was away from the real teachings of the Prophet ( SAWA).
Muslim governments should follow the real teachings of the Prophet Muhammad and his Holy Progeny who narrated and practices his teachings.
Wassalam.