Government mass surveillance breached human rights, says European court