Legislation proposes giving prisoners access to legal repres