Democrats retained their Senate majority Tuesday, losing five seats but winning key races in West Virginia and California