The force used by officers against a man they mistakenly believed was a wanted suspect was justified due to his resistance during the arrest, a judge ruled