WASHINGTON — President Obama woke up Monday facing a Congressional defeat that many in both parties believed could hobble his presidency. And by the end of the day, he found himself in the odd position of relying on his Russian counterpart, Vladimir V. Putin, of all people, to bail him out.