Counting continues after a Democratic wave swept through Republican strongholds, handing Trump a major midterm defeat.