The San Mateo County Deputy Sheriffs’ Association claims officials altered internal affairs procedures and interfered with the union president’s ability to represent members