The Dutch parliament has voted in favour of legislation that will allow drone surveillance where public safety is at risk.