How can I get the smell of cat pee out of my husbands clothes?

Hey so… my husband and I let a friend stay with us because she had some stuff going on and long story short, we kicked her out. During the months he was here her cats peed all over her room and our bathroom where we had a basket of clothes. Well my husband went to work today and his work clothes smelled like cat pee even though I washed them twice!! How do I get the smell out? Vinegar in the washer? google said baking soda also. Help please!! And what about the carpet in that room? It’s smells horrible in there and we can’t afford to rip the carpet and fix the floor yet so I have to be able to scrub it with the carpet scrubber for now. Thanks!