The law would have required Discovery, a U.S. company, to sell off its majority ownership of a large Polish media outlet.