German court approves Karstadt takeover plan