Given the potential implications of a holding that electors could vote for anyone they chose, it's not surprising that the justices held that states can prevent them from doing so, the only surprise is the unanimous vote in cases at least some expected to divide The Supreme Court.