Dr. Foster, a pathologist, helped establish genetically the long-alleged liaison between Thomas Jefferson and his slave mistress Sally Hemings.