Dr. Annie Andrews defeated Darline Graham, who succeeded her brother after his death, to become South Carolina’s first Democratic senator of the 21st century.