” We must bear in mind that one of the greatest glories of God’s power and infinite wisdom is that sin and evil, Satan and hell, are made to serve his purpose.” (Homer Hoeksema in Unfolding Covenant History vol. 3, 106).
Joseph is a key example. Sold into slavery by his brothers who would later bow before him and be saved by his wisdom and industry. As he himself testified, “You thought evil against me; but God meant it unto good, to bring to pass, as it is this day, to save much people alive.”(Gen.50:20)
Similarly, but in a much more important way, God used the evil Sanhedrin, Jewish rabble, Roman soldiers and Judas under Satan to crucify Christ who by his death would redeem his elect church from the beginning to the end of the world.