A non-binding motion advocating for tougher border and asylum regulations has passed, backed by the far-right Alternative for Germany (AfD).