German charity rescue ship with 40 migrants on board docks after 'tense' days-long standoff with Italian authorities.