Germany's likely next chancellor is being criticized for relying on support from far-right lawmakers to pass a bill to reduce migration into the country.