Former US presidential hopeful Bernie Sanders says he is "sickened" by a shooting attack on Republican lawmakers after it emerged the gunman had campaigned on his behalf.