A state judge had invalidated the package, saying shareholders were not properly informed about it. Friday’s ruling cleared the plan, now worth $139 billion. Share