As for you, you meant evil against me, but God meant it for good, to bring it about that many people should be kept alive, as they are today.
Just because God can use sin for good does not mean sin is good.
No one would interpret Joseph's words to mean that kidnapping is OK.
1 Timothy 2:12
I do not permit a woman to teach or to exercise authority over a man; rather, she is to remain quiet.
Just because God can use a woman in a pastoral capacity as an authority over men does not mean sin is good.
Why then do so many interpret Paul's words to mean that the practice of women in pastoral capacities is OK?