You can persist a query layer by exporting it to a feature class. The feature class can then be shared easily between geodatabases via copy and paste.
- Select the query layer in the Contents Pane.
- Right-click the layer and select Data on the context menu.
- Click Export Features to export as a feature class, or select Export Table to export the data as a table.