Even as stocks ended five days of losses with a surprising recovery on Wednesday, officials began moving to defuse another potential time bomb in the markets: the weakened condition of two large insurance companies that have guaranteed buyers against losses on more than $1 trillion of bonds.