Thanks very much for this.
Yes, I'm pretty sure it's one marriage. I've checked the original parish record, where the priest wrote John for the groom instead of Stephen. But I suspect this was a mistake which was corrected in the transcribed copy.
I'm almost certain Fahey is a transcription error. In the church record, the mother of the bride is Bridget Leahey, and I've seen other records for Michael Ryan and Bridget Lahey or Leahy (to add to the confusion, I've also seen Margaret instead of Bridget Lahey).
That looks like the same Ellen Beahan (the first wife of Stephen Ryan).