The moderate Republican found himself the target of good-natured cracks.