New South Wales will look at passing hate speech laws after Australia’s deadliest shooting in almost 30 years.