Supreme Court sides with Republicans in a significant decision tied to the election