SC ruling to cost state an additional Rs 500 cr