Norway Used NSA Technology for Potentially Illegal Spying
This may not be illegal at all. 
Like all other countries, we have foreigners living in Norway. A small subset of these are bad actors. Most notable we have a history of Russian agents and ISIS members in the country. Intercepting all communications filtering for these non-Norwegian citizens/terrorists is not illegal.