Two of Ireland's biggest political parties are close to finalising a deal to form a coalition with independent politicians to return to power for another five-year term.