US: Deal reached to avert gov't shutdown, reports say