The option you’re looking for in the XGBoost Tree Ensemble Learner is on the Booster tab - it’s called “Scale positive weights”. From the the node description:
Scale positive weight
Controls the balance of positive and negative weights, useful for unbalanced classes. A typical value to consider: sum(negative instances) / sum(positive instances).
Note that with this approach you have to be careful to set your positive class appropriately as described here:
Check here for another possible alternative using the H2O nodes: