NFL Commissioner Roger Goodell has apologised for the way the US football league has handled players' protests against racial injustice and police brutality.