The most straightforward answer I can give you is: have them gain less treasure during the next encounters, until you reach the intended balance.

In games where XP and money (or their equivalents) are independent, it's fairly easy. The PCs are now over-equipped, so they should be able to handle some higher level fights with bigger XP awards. Choose enemies that don't need any or much equipment to avoid having yet more wealth land in the PCs' hands. Have their level catch up to wealth. If you want it to resolve even faster, you can increase the XP rewards.

Keep in mind that the PCs will level up faster than normal while you are fixing the balance. Be careful if this causes pacing problems for your campaign or your players.

Drop some items now and then, just to keep your players content. Getting treasure is fun.