2 granted bail, court raps cops for diverting probe