LONDON — Four months after an election that brought down its government but settled little else, Ireland’s two main parties struck an agreement Monday to govern together for the first