The first one is the standard one that all passengers leaving from Dublin undergo.
Then, you have to have a TSA compliant one before boarding the flight to America. When you go through pre-clearance, it's as though you're boarding at a US airport. In theory, you could connect onto another US internal flight after this without a check. In practice, the layout of US airports never seems to allow for this.