Fifty years after police beat civil-rights demonstrators, the first African-American president commemorates their historic march