Realistically, such a ruling would have to occur before the cotton gin bolstered slavery as much as it did. Either a large enough slave revolt could occur, that would lead to some states adopting laws on the treatment of slaves, or a scandal of some kind might cause attitudes to change.