Northern Territory parliament has passed laws providing police with so-called wanding powers, in a bid to crack down on knife crime.