The senator pushed for Congress's long-gestating legislation that would require background checks and close loopholes that would allow dangerous individuals to purchase a gun.