Some companies could face dues running into thousands of crores if Thursday's Supreme Court order is applied retrospectively. This is because there are pending demands such as cess on royalty already raised by some state governments on mining operations.