Congress cannot pass a law that binds future Congresses, the supreme court decided in Winstar (https://www.law.cornell.edu/supct/html/95-865.ZO.html)
A later congress can always legislate whatever it wants, even if it contradicts previous legislation.