They weren’t prohibited from coming into D.C. for any reason, only for sale. The Compromise outlawed the slave trade in D.C. but not slavery in D.C.