Courts can't pass general directions to govt: SC