Answer:
The phrase means that even if the action was or seems wrong, the outcome or result means it was not really wrong. The phrase strictly, applies to cases where the moral outcome is truly superior to no action. Otherwise the end would not truly justify the means.
<span>It caused other merchants to be inspired. They saw a chance to seek similar profit.</span>