MPs vote against a law proposed by the main conservative opposition and supported by Alternative for Germany (AfD).