Judges overturn decision of high court that government proscription of group under Terrorism Act was wrong