The woman whose very existence once seemed to threaten the royal family’s stability has emerged as a stabilizing force during a major health crisis.