Two senators have struck a bipartisan deal on expanding background checks to more firearms purchases.