Lawmakers reach deal to avoid government shutdown and add funds for Secret Service