Ireland referendum: how the government's nightmare day unfolded