Having corporations be distinct entities whose investors have limited liability is a pretty fundamental to a lot of things. But voting? That is way too far.
One can imagine all kinds of abusive scenarios with shell corporations created just to get votes, but sounds like the judge thought that these imaginary scenarios were not demonstrated to be actually happening. Courts typically rule only on demonstrated harm or other actual evidence, not "what if" conjectures.