Regulation is not endorsement. Regulating tobacco, for example, isn't endorsing tobacco.
At the time of the Old Testament, it wasn't practical to be against slavery, so the Old Testament just says nothing. Slavery wasn't eliminated by some moral movement, it was eliminated by the industrial...