Vote in congress did not matter because the treaty did not become law only if congress voted for it not to become law but the president could veto that and congress would not be able to overturn that veto.
I don't know if you are just not able to understand that or you are a paid hack so tell me which.
Obama was going to make the US a signatory to the deal without Congressional input. Read the link I posted to you.