German bill calling for tougher rules on migration narrowly defeated