They may have correctly followed a legally justifiable theory that led to their decision, but there were also other equally, if not more, legally justifiable theories they could have followed to reach the opposite decision.
For example, a theory that would incorporate the idea that a badly acting legislature cannot be the only one to depend on to curb the badly acting legislature when the bad behavior’s goal and effect is to shape the very mechanism that provides the only check on their behavior, ie voting.