I think you've mixed up Snowden (whose leaks were all around 2013, well before the Trump campaign) and Assange (who fits your description).
In brief though, he can not be a traitor because he is not American and never worked for the American government. The most traitorous party in the Assange case was probably Manning, who had his sentence commuted by Obama which was then lauded.