The camps of Hillary Clinton and Barack Obama were set for a nail-biting wait to see who would gain most of the 2,084 Democratic delegates up for grabs in Tuesday 's unprecedented flood of voting in 22 states .