«جَاءَ الَّذِي نَجَحَ»: indeclinable relative, nominative position (subject).
«رَأَيْتُ الَّذِي نَجَحَ»: accusative position (object).
«مَرَرْتُ بِالَّذِي نَجَحَ»: genitive position (after preposition).
Its form stays fixed; its syntactic position changes.