Some men are called to govern others: “There is no authority except from God“, “The Most High rules the kingdom of men and gives it to whom he will.”
That does not mean God approves of all rulers or the decisions they make. He once elevated Pharaoh, a proud pagan tyrant, and then publicly humbled him. God said, “For this purpose I have raised you up … so that my name may be proclaimed in all the earth.”
Solomon too was raised up by the Lord.