Instead of using the feature class as the input, use a feature layer. If a feature layer contains selected features, the Union will only occur with the features that have been selected, not all of them.
This is an example of that done manually using the Union tool. The hashed circles are the result of the union between two feature layers with one selected circle each.