Security agency said allowed to continue program 'until the end of the crisis' as government unable to come up with alternative system