A Delaware judge decided that a $38 billion merger of two pipeline giants could be abandoned over a discovery that it might not be tax-free.