For the second time since Democratic Gov. Roy Cooper took office, the state Supreme Court issued a ruling striking down an attempt by the Republican-led General Assembly to revamp the state elections board.

In a 4-3 ruling that breaks down along the court’s partisan lines, the justices found that a law passed in 2017 that merged the state Board of Elections with the state Ethics Commission and limited Cooper’s power to appoint a majority of its members violated the state Constitution’s separation of powers clause.

The ruling, in a case that has attracted national attention, means that the governor’s party will control elections boards at the state and county levels, as has been the case for decades before Cooper defeated one-term Republican Gov. Pat McCrory. That could have implications for voting hours and poll locations in this year’s elections.