# to trap him
This means to use a trick question.
# so that they might have something to accuse him about
"so that they could accuse him of saying something wrong" or "so that they could accuse him of not obeying the law of Moses or the Roman law"