Upgrade applies per leg, per person on a transatlantic segment operated and ticketed by Aer Lingus. You would be permitted access to the lounge in Dublin having arrived in J on transfer, European flights are entirely economy.
You can upgrade one person one way, or any combination of segments and people, but beware there is very limited redemption space in J and its goes very quickly