CNN: Shooting prompts legislation to protect lawmakers, officials