Democrats won crucial races in states where abortion rights were at stake.