A person obeys a sinful command hoping it will end wrongdoing. What is the relevant principle?

Creed Casebook: Claims, Principles and Sound Judgments