The easiest way is to go to the history that contains the datasets and use the history menu option "Copy Datasets". You can move the data to another existing history, create a new history, or even copy the dataset back to the current history.
- Managing Datasets, Copy function https://galaxyproject.org/learn/managing-datasets/#copy
A copy won't consume any extra account quota.
Thanks! Jen, Galaxy team