Obama had been criticized for not coming to the state earlier to view the flood damage. He also was criticized for not coming to the city after Sterling's shooting, which was followed by demonstrations and the killing of police officers in the Baton Rouge area.