Sentence:  Closely related to this function is the fact that the religious system provides a body of ultimate ends for the society , which are compatible with the supreme eternal <WSD>ends</WSD> . 
Meaning of the word marked with <WSD> tags:  the state of affairs that a plan is intended to achieve and that (when achieved) terminates behavior intended to achieve it