German lawmakers have recognised as genocide crimes committed by so-called Islamic State militants against minority Yazidis in Iraq in 2014.