Republicans must learn from Democrats’ shortsighted power grabs so they can avoid making the same mistakes