Gun bill passes Senate 23-7