What do you think the swords were for? Wall decorations? They were for self defense in case anyone messed with them after Jesus' arrest.
Jesus said to his disciples to go and to buy swords with their money. When they returned and said they had bought two swords, Jesus replied and said..."that will do".
It is clear that the two swords against the multitude of Pharisee's guards who carried weapons, was by no means an attempt by Jesus to use the swords in a "just war" as you claimed, to kill and to maim them. In fact, those who had the two swords would be sent on a suicide mission, if they went against the Pharisees and their entourage.
Jesus by asking his disciples to take arms, was solely a symbolic gesture, that is a stance against the Pharisaical establishment and by doing so, he would be numbered with the transgressors in fulfilling prophesy.
This is what Jesus said.....
It is written: ‘And he was numbered with the transgressors’ ; and I tell you that this must be fulfilled in me. Yes, what is written about me is reaching its fulfillment.” (Luke 22:37)
It is a case where Jesus made his intentions clear by this gesture, that is he would give the impression, that he was pushing for a revolution against the church establishment and by doing so, was finally considered by the Pharisees as a revolutionary. To this very day, unbelieving Jews still label Jesus and his disciples as revolutionaries who wanted to route the establishment. What really happened, is that the Pharisees played into Jesus hands and made a fatal move, by making a pact to execute him and his disciples and this would explain why Jesus would say to Peter.....
“I tell you, Peter, before the rooster crows today, you will deny three times that you know me.” (Luke 22:34)
Peter was according to the establishment, a transgressor along with Jesus and that is why he would disassociate himself from Jesus when he was being recognized.
Jesus clearly is not going to use two swords to overthrow the Pharisees, rather he makes a symbolic stance in fulfilling prophesy and by doing so, he would rebuke the companion who reached for his sword, drew it out and struck the servant of the high priest, cutting off his ear, when he responded as follows......
“Put your sword back in its place,” Jesus said to him, “for all who draw the sword will die by the sword.
53 Do you think I cannot call on my Father, and he will at once put at my disposal more than twelve legions of angels? 54 But how then would the Scriptures be fulfilled that say it must happen in this way?” (Matthew 26:52)
There is no just war in using instruments of war to kill and to maim others. Jesus would be against those who advocate violence and war, regardless of cause. In fact Jesus clearly states that when you see the abomination of desolation, you are to run away and not to turn back. This is clear cut, that we are to run away from trouble and not to confront violence with violence and evil with evil.