Court raps cops for shoddy murder probe