after they had traveled for several years - adverb clause
Step-by-step explanation:
The clause "after they had traveled for several years" is introduced by after, which is a subordinating conjunction of time.
The clause "after they had traveled for several years" is an adverb clause of time.