Bernie Sanders touted his anti-NRA credentials at the Democratic debate, but his actual legislative record is more complicated