State passes law banning local, state and federal officers from using gloves that deliver painful electric shocks