Lawmakers Reach Deal to Reopen Government After Shutdown