The contentious legislation has fuelled hostility in the ethnically divided Balkan country.