The New York attorney general on Thursday filed suit against two cryptocurrency companies and their promoters, alleging a pyramid scheme that defrauded hundreds of thousands of people out of more than $1 billion.