The high court has said it would be in the public interest given the importance of motions of no confidence in the president, to settle whether MPs can vote in secret