If we're apparently putting people in jail for their intentions then definitely, intentions matter when the situation is the reverse as well. The guy tried to make a stand, messed up under pressure (and who here would dare to say they would not, I'm pretty steadfast but when that sort of power is aimed directly at you and your small company it takes some serious mental fortitude to even consider rejecting the request) and unfortunately made some bad technical decisions.
All in all, nothing but good intentions and with a bit more foresight it would have ended quite differently. I sincerely hope that if I'm ever the subject of such pressure that I'll do half as good, hopefully better but definitely no guarantees there.
And trying to protect Edward Snowden was - especially at that moment in time - something that was a very hot issue as an American citizen well within reach of the arm of the law.