Ireland’s leaders face a serious dilemma. They are pushing hard to ensure the U.K.’s departure from the European Union doesn’t leave it with a visible land border, but they want to avoid alienating the country’s larger neighbor with which it has only lately become reconciled.