There is a sinful, human notion that "the end justifies the means", which runs hand in glove with the equally sinful, human notion that "might is right". When humans start with such flawed, ungodly ideas in mind, then suppose that some isolated bits in the Bible appear to show God working along very similar lines, then questions such as this arise.
A good way to answer this in a helpful manner is to start with the greatest (God) and then compare the lesser (sinful humanity) with their creator - God. Sadly (though understandably) most people start with human ideas. Well, if we start with God we begin with the perfection, justice, righteousness, holiness and love of God; the concepts to be grasped are of light and truth and unchangeableness and sovereignty. Also, it's vital to realise that God created everything, material and immaterial, including a material universe with this planet packed full of life and provisioned so that the pinnacle of God's creation on earth - humans created in God's image and likeness - lacked for nothing. God's immaterial spirit creations (called angels, some of whom became demons due to rebelling against their creator, as did humanity) are just as much subject to the sovereignty of their creator as are humans.
You will notice that I'm not paying much attention to what you call "the principle of double effect". That's because it's not a biblical concept. As you ask this in the Christianity section, I suggest that the answers come from what the holy scriptures say, and not from the realms of human philosophy.
The Bible shows time and again God exercising his sovereign right as creator to bring about his will to pass, despite all that humans and demons try to achieve. He fools people at times. (He fooled me before I became a Christian in order to bring me to saving faith in Christ, and he can fool me any time he likes, though that's too easy for words!) He keeps people in the dark (spiritually speaking) when their hearts are darkened and hardened against him. That's his prerogative. He's the Almighty.
God uses world rulers to carry out his will at particular times. He even uses them to bring down other world rulers that seem to be thwarting God's will. He changes the course of history - never more so than by bringing his only-begotten into the world to defeat sin, death and the devil at Golgotha and the empty tomb.
He has also told us in advance what he is going to do (and even now is in process of doing) culminating in the spectacularly unexpected return of Christ to usher in the awesome Day of Resurrection and Judgment. You can read all about that in the last book of the Bible, penned shortly before the end of the first century A.D. That book fearfully shows God exercising his sovereign will over human governments, religions, and Satan with his hordes.
When your question is looked at from such a radically different perspective, you may see the need to stick to what the holy scriptures say about our creator. Then Jesus commanding the demons when he walked this earth, and their inability to disobey him, shows the sovereignty of God. Every knee will have to bend before Jesus, who has the name above every name (Philippians 2:9), many unwillingly on the Day of Judgment, but those who belong to him by faith willingly, at the point of them trusting only in Christ. I hope this help you.