NHS faces landmark case on equal pay agreement