"and for what?", the what is to send a message to everyone not to screw around with Nintendo.
Whether that's morally right is another question.
The point was that if you have deeper pockets than your opponent then you're able to leverage the legal system to make life hard and stressful for them.
Nintendo has deep pockets and the will to go after anyone it considers a threat to its business model.