Deal reached to expand background checks