After years of legal wrangling, the German state and Hohenzollern family — heirs to the former German imperial dynasty — have reached a settlement over thousands of precious items, including paintings and furniture.