That's my fault the way I worded it. I didn't mean the Jedi code, but palpatine was trying to convince Anakin of the hypocracy of the Jedi Council...that they talk a good game, but when it comes down to it, they do what is convenient for them (his argument).
He builds that argument up through the whole movie, saying how the Jedi are afraid to lose their power as much as anyone, that they want to grab control of the Senate for themselves, etc....basically that they are essentially not any different or better than the Sith. Of course, Palpatine has manipulated them into a position where they are pretty much forced to prove his point. By the time of Ep 3, the Jedi have been moved into a lose/lose situation.
Like you said, Palpatine's main weapon was the Force, so he was never "disarmed" at all. he was never helpless.
And Anakin was not defending the Jedi Code. That was an excuse to himself (that Palpatine provided for him), so he could justify selling the entire universe down the river for his own personal needs. What he was defending was his slim hope that the Dark Side could save Padme. The last thing (or one of the last things) he says before cutting off Mace's hands was "I need him".