Actually, it was to appoint Gorsuch (who replaced Scalia's vacant seat). Kavanaugh was appointed to replace Kennedy.