Israeli cabinet agrees to Gaza withdrawal