Florida's Republican governor on Friday signed a bill to restore the voting rights for felons who have served their time, but he wants them to pay all fines and restitution before casting a ballot, a hurdle that immediately drew a lawsuit from civil rights groups.

Gov. Ron DeSantis opposed a ballot measure that Florida voters overwhelmingly approved in November allowing felons to vote after they complete their sentence, with exceptions for those convicted of murder and sexual offenses.

The newly enacted law would limit voting rights to convicted felons who have wealth, disenfranchising many others who cannot pay their fees, civil rights groups said.