Agreement prompts Alameda County Sheriff’s deputy, NBA exec to drop legal actions