The wives of two former governors, Eliot Spitzer of New York and Mark Sanford of South Carolina, and of former Representative Anthony Weiner of New York, have often looked like stunned bystanders to their husbands’ sex scandals.