Affiliated real estate investors that often buy distressed shopping malls are close to taking control of a 47-story office tower in Chicago’s Loop business district, a deal that comes about three months after the firms bought one of the tallest buildings in Cleveland.