The $18 billion deal had been in regulatory limbo as investors waited for a green light from China, the last country that needed to sign off. Trade tensions between the U.S. and China had raised the prospect that China might hold up the sale indefinitely.