They received God's blessing after they returned to monogamy. Go read your Bible.
I forgot to add, Solomon did not repent and was destroyed.