Alcohol will be banned in Northern Territory town camps and remote communities after parliament passed amendments to the liquor act.