If you say that you will do something, especially an extreme action, if need be, you mean that you will do if it is necessary. In British English, you can also say if needs be.
They will now seek permission to take their case to the House of Lords, and, if needbe, to the European Court of Human Rights.