It's a present participle form here, so it can take the place of an adjective.
The last part of the sentence is related to the phrase "the means to an end", ie. the process by which you get a certain result. We also ask "to what end?" when we want to know what kind of result someone expects from their actions. So, "to" is not part of a verb but it tells us of a transit towards something.