Palestine Action has won its bid to challenge a government decision to ban the group under anti-terrorism laws.