A judge’s ruling enables a New York startup company, at least temporarily, to offer prediction contracts on the overall outcome of the 2024 races.