Nominative ʿāʾid: «جَاءَ الَّذِي نَجَحَ»: an implicit «هُوَ» is the subject of «نَجَحَ».
Accusative ʿāʾid: «جَاءَ الَّذِي أَكْرَمْتُهُ»: «هُ» is the object.
Genitive ʿāʾid: «جَاءَ الَّذِي سَلَّمْتُ عَلَيْهِ»: «هُ» follows a preposition.
The key is reference back to the relative noun, not merely the appearance of a pronoun.