Senators reach framework agreement on gun safety