Montagnier and Gallo battled in the 1980s over who was the first to do the crucial work that led to identification of the virus , at a time when debate raged over what was causing the devastating disease .