Former President Barack Obama on Wednesday said “the stakes could not be higher” for democracy as he skewered Republican redistricting efforts and attempts to codify voting restrictions in state laws.