-
If all the carriers were in Star Alliance, it should be fine but because Aer Lingus is the wildcard, I don’t know on this one.
The bags would have to be transferred between two non-aligned carriers.
I’d call United to be sure but you probably won’t know until check-in.