White House says Karzai, Obama committed to preventing Afghan riots