The top court ordered States and Union Territories to frame such a policy within three months in coordination with the respective State Legal Services Authorities