I see God’s will in 3 categories:
The moral will of God — what’s right and wrong
The revealed will of God — prophetically revealed future
The secret will of God — what will happen because what God wants God gets
Violations of the moral will of God may indeed be within the revealed will of God or the secret will of God. This does not excuse those violations from judgement.
Ultimately: God is God and he does as he pleases.