Our God is so sovereign and so good, He can use evil in a holy way:
Sin is an evil, yet the futurition [future existence] of sin, or that sin should be future, is not an evil thing. Evil is an evil thing, and yet it may be a good thing that evil should be in the world. There is certainly a difference between the thing itself existing, and its being an evil thing that ever it came into existence. As for instance, it might be an evil thing to crucify Christ, but yet it was a good thing that the crucifying of Christ came to pass. As men’s act, it was evil, but as God ordered it, it was good. Who will deny but that it may be so, that evil’s coming to pass may be an occasion of greater good than it is an evil, and so of there being more good in the whole, than if that evil had not come to pass? And if so, then it is a good thing that that evil comes to pass. When we say the thing is an evil thing in itself, then we mean that it is evil, considering it only within its own bounds. But when we say that it is a good thing that ever it came to pass, then we consider the thing as a thing among events, or as one thing belonging to the series of events, and as related to the rest of the series. —Jonathan Edwards, Remarks on Important Theological Controversies