You describe 2 different cases.
The first case is an answer that is controversial. Many people found it helpful, but judging by the comments, many others found it a bad idea. That answer has stood for several years, giving people plenty of time to vote either way.
It is possible for people to have multiple accounts, and use them to vote multiple times. This is called sock-puppetry and it is explicitly forbidden. You are allowed to have multiple accounts, but they must not interact - you should not do anything with them that you couldn't do with a single account. So, voting on the same post from multiple accounts is not allowed. (Just for the record, I don't think that was what happened on that answer.)
The other case is serial voting. People dislike a user and decide to vote down a lot of their posts. This is forbidden, we should only vote on content, not on the person. There is a script that runs every night at 3.00 AM (UTC), that looks for voting anomalies and reverts the serial voting that it finds. And it probably takes further action against the serial voter, if that is necessary.
Serial voting also works the other way - upvoting a lot of a person's posts because you like that person. This, too, is forbidden. Again, voting should happen only on the content, not on the person.
So - yes, we have automated tools discovering this. Moderators and attentive users also look at it. Sometimes users find suspicious cases and use a custom moderator flag to warn the mods.