Democrats take House, Republicans keep Senate in historic midterms