David deemed God's hand in all things pertaining to him; even the bad things. This is God we are talking about. Saying He allows it, is the same thing as Him doing it.
Psalms 39:9-13 "I was dumb, I opened not my mouth; because thou didst it. Remove thy stroke away from me: I am consumed by the blow of thine hand. When thou with rebukes dost correct man for iniquity, thou makest his beauty to consume away like a moth: surely every man is vanity. Selah. Hear my prayer, O LORD, and give ear unto my cry; hold not thy peace at my tears: for I am a stranger with thee, and a sojourner, as all my fathers were. O spare me, that I may recover strength, before I go hence, and be no more.”
You must then accept that if a majority of voters choose an evil way, it is God's will?
I prefer to take this back to the kind of government God established that man should follow.
Romans 13:1-7 (KJV)
1 Let every soul be subject unto the higher powers. For there is no power but of God: the powers that be are ordained of God.
2 Whosoever therefore resisteth the power, resisteth the ordinance of God: and they that resist shall receive to themselves damnation.
3 For rulers are not a terror to good works, but to the evil. Wilt thou then not be afraid of the power? do that which is good, and thou shalt have praise of the same:
4 For he is the minister of God to thee for good. But if thou do that which is evil, be afraid; for he beareth not the sword in vain: for he is the minister of God, a revenger to
execute wrath upon him that doeth evil.
5 Wherefore
ye must needs be subject, not only for wrath, but also for conscience sake.
6 For this cause pay ye tribute also: for they are God's ministers, attending continually upon this very thing.
7 Render therefore to all their dues: tribute to whom tribute
is due; custom to whom custom; fear to whom fear; honour to whom honour.
The government style God endorsed is a righteous government identified by those verses. No unrighteous style of government is indicated as according to His will, since many are devoid of those standards. Israel paid many prices for tolerating unrighteous rulers over them who defied the will of God.
A common reaction is to follow willy-nilly according to majority will, such that it requires the blood of self, children, children's children, somewhere up-line resulting in payment of another generation of human blood to right the prevailing government that resulted from the insanity of previous generations.