Ruling opens door to sports betting