Literally, “the ends justify the means”. Compare el fin no justifica los medios.
el fin justifica los medios