Why immigrant, GLBT and good-government groups were behind the defense bill