Howard Hughes Corp., a Dallas-based real estate firm known for developing master-planned communities, posted a second-quarter earnings loss as its retail and hotel properties were hit hard by the ongoing pandemic and it continues plans to trim expenses and shed $2 billion in noncore real estate holdings.