Comparing the Taliban and the Confederacy are apples and oranges. I don’t support or like either, death to the Taliban, but the Taliban were (for worse) the dominant army in the area after the USA armed and financed their precursor mujahideen. So, unfortunately, they were the only group practically capable of preventing the USA invading them from the other side of the world to seize the Afghani resources. It wasn’t an invasion over slavery laws. It was for oil and trade routes, and so many people will side with the Afghani state over the imperial Western alliance despite the Taliban being a disgusting regime. And remember, the Taliban were only in power because of the Western foreign interference, so it’s not like there was a real Lincoln trying to free Afghanistan from the Taliban. History of the region shows that there was never a sincere attempt to ‘install democracy’ there, it’s pure Public Relations propaganda.
No contradiction. Law is a dumb basis for deciding what you like and don’t like.