China’s lockdown in Shanghai is loosening after an outbreak of COVID killed 580 people. Millions of residents were confined to their homes for weeks, reporting shortages of food and medicine.