Morsi had been vowing to Egypt that he would get the Blind Sheik released. He promised Egypt he would. This was a months long campaign. Morsi was in bed with Hillary at that time. Obama/Hillary were doing this for him. That was a factor, I believe.
I don’t discount the possibility that O and Hillary wanted to do this. I just find it hard to believe that the American public that isn’t already in the bag for the Dems would have viewed this as a great foreign policy success.