There are only 2 ways I can see this ruling happening.
1 it was for a very, very narrow aspect. info that is not contained in the artical.
2. 3 of the 5 judges never actually practiced law, but were elected/appointed under false pretences. ( fyi, you don't need to pass the bar to be a judge.)