The street artist Shepard Fairey and The Associated Press have ended their long-running dispute surrounding the creation of the well-known campaign poster of Barack Obama.