Court directs RGV to credit ‘Sarkar 3’ writer