Prime Minister John Key apologised after an official report into the Government Communications Security Bureau (GCSB) surveillance of Mr Dotcom and his involvement with Megaupload.
The New Zealand attorney general had asked the appeals court to exclude the GCSB from Mr Dotcom's lawsuit seeking compensation, after the high court ruled last year that the agency could be held liable for illegally spying, but the court rejected the bid.