Representative Democracies are, by definition, authoritarian. A small number of people are elected, democratically, to make the decisions for the majority.
Is the decision to end slavery a majority decision? Then it’s democratic.
With the contradiction being that the people who were pro slavery could just decide, “Nah, we’re not going to end slavery”, and continue to do slavery. Which I’m pretty sure is generally how that went in the USA.