You keep misusing the phrase, "as it is written". This simply means that Trent is using 3:5 as proof for the prior statement. It's important because John 3:5 disambiguates the "without A or B" expression, but it's not being used in the sense that you've been using it.
I'm not misusing it, I am saying it says that:
Justification is not possible without the sacrament or the desire [alone] for the sacrament, as it is written [i.e. which is to say] unless a man be born...
This is the only way Trent is not contradicting itself.
Otherwise, you are saying it says that:
Justification is not possible without the sacrament but is possible with a desire [alone] for the sacrament, [and not] as it is written unless a man be born...
This ^^ way is a full contradiction....
1st, justification is not possible without the sacrament.
2nd, justification is possible without the sacrament.
3rd, justification is not possible without the sacrament.