Lots of very christian Americans had very christian outlooks on slavery being legal in the 1850s, and on unequal rights being the way of things (noah and ham) up until the 1960s. If I were looking for a religion that didn't have a history of justifying slavery, I'd point to maybe buddhism and taoism, maybe. Certainly none of the abrahamic religions (old testament) or hinduism.