That's like saying our Constitution condones slavery and of course it did. But condone does not mean to encourage or establish. A better way of looking at it is that both documents recognize slavery which had been an established institution, this is especially true of the New Testament.
Do a test. Ask yourself why you think slavery is wrong.
Slavery was ended via Christian activist mostly in this country and in England.