Complex sentence: The electors generally cast their votes for the winner of the popular vote in their respective states, but in some states are not required by law to do so.
Split into simpler sentences: The electors generally cast their votes for the winner of the popular vote in their respective states. However, they are in several states not required by law to do so.