the end justifies the means - definition and synonyms

phrase
  1. any methods, even bad ones, are allowed in order to achieve what you want, especially something good
See also main entry: end