Germany has struck a compromise over a controversial move to allow a Chinese shipping group to buy a stake in a terminal at...