Who consolidated their hold with the emergence of the Kingdom of Israel, and the kingdom of Judah?