The Senate cleared a key threshold Thursday, setting up passage of the first significant gun legislation in decades.