Karnataka has passed a bill to prevent hate speech and hate crimes but critics say it could erode civil liberties.