Australian court rules extremists can be imprisoned after they have served their sentences