Beleagured president receives welcome shot in the arm as Republicans unite to save his defense secretary one week on from disastrous midterms wipewout, writes Joe Sommerlad