The comedian was detained by police during a protest against the planned confirmation of Brett Kavanaugh to the Supreme Court.