Republicans made a concerted effort to win statehouses, which has given them the opportunity to rewrite abortion laws. Now, those very same laws could cost them statehouses.