A joint venture has sold a majority interest in a Parsippany office building, following upgrades at the property that helped lure a pharmaceutical company’s U.S. headquarters in 2018.