Seven former employees of the Hidalgo County Criminal District Attorney’s office who claimed that District Attorney Ricardo Rodriguez Jr. fired them as political retaliation have won a split ruling.

In that ruling, the U.S. Court of Appeals for the Fifth Circuit found that Rodriguez has qualified immunity. It dismissed the claims of four of the plaintiffs who had worked as investigators in the DA’s office, but the court allowed the remaining three ex-employees to proceed to trial.