Germany says EU border protection is ‘legitimate’