How a very political court case sparked a huge row - and questions about the separation of powers.