https://en.wikipedia.org/wiki/Eugenics#Supporters_and_critic...
In fact, the legacy of this exists today - note that the Communist party of China is the main practitioner of eugenics today (see Yao Ming).
It's only in the modern era of identity politics, inequality as a real concern, and racial spoils systems that liberals have come to oppose it. If we acknowledge that intelligence is genetically determined, then we might be forced to recognize the tradeoff between individual fairness and statistically equal distribution of spoils. We might also be forced to acknowledge that inequality is a result of inborn meritorious traits (intelligence, conscientiousness) rather than some external unfairness.
It's hard to understand now, but society back then was quite different than today, and the political divisions of the time were also different. Francis Galton had done some early psychometry, and published his results claiming that the English upper class was the upper class because they were genetically superior to the lower classes. This result was widely accepted by both the progressives and the conservatives. The difference between the left and the right was not opposition to the principle of Social Darwinism, but just what should be done about it. The progressives advocated for eugenics to lift the lower classes from the 'genetic deficit' they were born into, while the traditional conservatives believed that this was unnecessary and that the situation as it existed was the natural order that shouldn't be fixed. Neither side would fit at all into modern common morality.