The Democrats on Tuesday took control of both houses of Congress and flipped long-held Republican Senate seats and state-level positions.