Palestinian factions move closer to pact