Democrats are bracing for the possible retirement of Speaker Emerita Nancy Pelosi, one of the party’s most powerful, popular and effective leaders.