A partnership involving a Goldman Sachs asset management fund and a Dallas-based industrial developer has sold a New Jersey warehouse to the federal government for an immigration detention facility.