Capitol Hill reaches tentative agreement to fund government