Germany backs Turkey's right to defend its territory