Judge dismisses Catholic parishioners’ lawsuit against Buffalo diocese