Why eight Democrats struck deal with GOP to end shutdown