It doesn’t matter what you major in to go to law school. Just do well in school and on the LSAT. Most states require that you be a lawyer for a set time before becoming a judge. In addition, at least in my state, you need to be politically active and connected to get a nomination. I have been practicing law for over thirty years and would never want to be a judge so to each their own.