The importance and applicability of "states rights" is always oddly narrow.
It's also always ignoring the declarations of secession that all explicitly name slavery as the motivation.