No man, or no church is or can be infallible.  The idea that we have the Spirit until the end of times is needed here to show us better ideas as our human minds grow and expand.  The Council of Trent was simply a reactionary approach against the need for us to change.  We should have listened to Martin Luther then as we have agreed more recently that what he said was almost entirely correct..... No the council of trent was no more infallible than my dog Fito.