The Senate voted Tuesday to extend for another decade a ban on military-style assault weapons and to require background checks on buyers at private gun shows, giving Democrats rare victories on gun legislation that would also deny crime victims the ability to sue gunmakers and dealers.