The leaders of Ireland’s next coalition government have welcomed an agreement that will shape the country’s political landscape over the next five years.