US Democrats lock horns over war, gender in last debate before Iowa