A court ruling ordering Nano Dimension Inc. to close its $183 million acquisition of 3D printing rival Desktop Metal Inc. drove the companies’ shares in opposite directions early Tuesday.