Lower house votes in favour of polarising law after rapid increase in population and attack on grazing farm animals