Complex sentence: He states that people should always be treated with respect to their personhood and dignity, and always as ends in themselves: they can be treated as a means to an end but never only as a means.
Split into simpler sentences: He states that people should always be treated with respect to their personhood and dignity. People must always be treated as ends in themselves and can be treated as a means to an end, but never "only" as a means.