You can perform any analysis or meta-analysis you'd like, as long as you accurately report the limitations and what measures you have taken to mitigate batch effects. First, you want to make sure you normalize your data appropriately to control for differences in sequencing depth. Second, most differential expression statistical software will allow you to specify a multiple regression equation, where you would normally include your experimental factors, for example:
formula = ~ 1 + Treatment + OtherCondition
In this case, you could just encode each sample according to its datasetID and add that into your regression equation to help control for batch effect:
formula = ~ 1 + Treatment + OtherCondition + DatasetID
For software that allow random effects, it might be even better to have DatasetID as a random effect, however with only two datasets, you may be forced to use a fixed effect instead (not enough sample size for estimating a random effect).
However, one difficulty you may run into is if one study has an experimental factor that the other does not, since you can't compare data across studies if one study didn't track that information (at least, not without doing more complex modeling). The best case scenario is if you're just looking to find DEGs, and there are few to no complex experimental features in either dataset.