Hong Kong, with some of the world’s highest housing costs and inequality, must now figure out how to help thousands of residents who lost friends, family and homes.