The Council of Trent, Seventh Session, On the Sacraments in General, Canon IV says, "If any one saith, that the sacraments of the New Law are not necessary unto salvation, but superfluous; and that, without them, or without the desire thereof, men obtain of God, through faith alone, the grace of justification;-though all (the sacraments) are not indeed necessary for every individual; let him be anathema."
I might suggest digesting this canon in three parts (divided by semicolons), that (1) the sacraments are necessary for salvation, (2) with them, or a desire for them, men obtain from God the grace of justification, and (3) that all the sacraments are not necessary for every individual.