Tanzanian cabinet ratifies Nile deal