SC tells govt to legalise changes in ECL rules