An out-of-state investor has paid more than $31 million for a newly built, 80-unit apartment building in Union City, CBRE said, touting the sale among several recent deals in Hudson County.