How to undo a Time Machine restore?
Two things might work in your case:


Power off the Mac and hope an unerase utility can recover the files before they get overwritten (assuming the restore didn't write over the existing files on disk).
Delete the folder and try again from a different Time Machine snapshot.