And God allowed Satan to be used to show the faithfulness of Job. He also used the heathens to punish the Israelites. The Romans crucified Jesus which brought our salvation. Just because God uses some group or people doesnt make them right with God.
But in the end, God works out all things for the good.