A bipartisan group of senators came to a final agreement on a gun safety bill that could be the biggest breakthrough on the issue in decades of congressional gridlock.