The two troopers pepper-sprayed, beat, stunned and used a police dog on the wrong man, authorities said.