The president said while attitudes about race have improved significantly since he was born to a white mother and black father, the legacy of slavery "casts a long shadow and that's still part of our DNA that's passed on."