Over 250 patent judges were not properly appointed, the Supreme Court rules.