State lawmakers approved a measure to debate removing the Confederate flag from state grounds after pictures of the accused gunman posing with the flag unleashed a tidal wave of protest.