Researchers analyzed millions of electronic health records and found a major difference between states that greenlit sports gambling and those that didn’t.