The all-cash buyout at $19 per share comes after the real estate investment trust’s pivot away from office holdings.