Former Hidalgo Co. official pleads to eight counts