Gamaliel, a teacher of the law who was honored by all the people
Luke introduces Gamaliel and provides background information about him.
who was honored by all the people
"whom all the people honored"
to take the men outside
The words "the men" refers to the apostles.