Leagues cash in on sports betting they once fought