The High Court has upheld the constitutional validity of West Australian legislation that allows prisoners to be held in indefinite detention if a judge finds they could be at risk of committing a serious offence. It's feared the verdict may open the door for other states to expand the use of 'post-sentence' detention laws.