There are layers to God’s activity in the universe. The first is that he wills the good and only the good, however, in doing so, he allows evil through those of evil intent in order to bring about the good he first ordained, that when seen from above would be apparent evil meant for good.