It wasn't debated, dissent was simply crushed with guns and cannon fodder. "Legitimacy" has nothing to do with it. It was an exercise in raw power.
The North simply attacked the South because they meant to impose their will in the other's lands.
And they were successful at it.