I would say the first one - because the phrase "in order to . . . . " answers the question of "why" for the verbs "do ordain and establish "
I think it is an adverbial phrase.
(I am not a teacher.)
- For Teachers