Quartet agrees to extend Palestinian aid mechanism