Spy program exposed by Snowden illegal