Chinese officials warned of a "heavy price" earlier this week after a Panama court ruled against the lease contracts to two ports.