Palestinians reach deal on unity government