How did the Brexit vote end up in the Supreme Court?

Video. How did the Brexit vote end up in the Supreme Court?

In June, 2016, the UK voted to leave the European Union.