An FBI investigation into allegations that deputies planted incriminating evidence to sway testimony about a police officer’s slaying morphed over three years into what one former official called a top-to-bottom review of the Berkeley County Sheriff’s Office.