If they're hitting harder than expected, it might not actually be a big deal. Increase the difficulty of their fights a little -- add a few extra monsters to each fight, or use slightly tougher monsters. They'll gain more XP for each fight, which means they'll level up faster, and they'll soon be back on the right level for the amount of stuff they have. The problem will rapidly become less of an issue. So your best bet might just be acceptingto simply accept that they'll be unusually tough for their level for a while, and just adjust for it.
If you can't wait for them to just naturally even out (or they won't, like if you accidentally let them buy some legendary items), maybe the best thing is just an honest discussion with the players. "Hey, I made a mistake when I let you buy all that stuff, and it's messing up the game. We need to fix this, but I don't want to impose a fix on you. So can we come up with a story together that removes the strongest items from your characters?" You can back up that it was a legitimate mistake on your part by pointing out that the DMG specifically says all magic item purchases are up to the DM to allow. You didn't actively stop them from buying those items, but you weren't really aware of what you were allowing and that you had the means to put on the brakes, either.