A federal court on Wednesday ruled that the Internal Revenue Service can serve digital-currency-services company Coinbase with a “John Doe summons” that seeks detailed information on its customers’ transactions from 2013 to 2015.