WASHINGTON — The Supreme Court on Monday turned away a challenge to a Wisconsin law that requires prospective voters to provide photo identification before casting their ballots.

Officials in Wisconsin said they would not enforce the law in the next election, on April 7, but would require compliance in later ones. The April election includes contests for judicial seats and local offices.

“Absentee ballots are already in the hands of voters, therefore, the law cannot be implemented for the April 7 election,” Attorney General Brad Schimel said in a statement. “The voter ID law will be in place for future elections — this decision is final.”

Dale Ho, director of the American Civil Liberties Union’s Voting Rights Project, said the group would continue to fight. “We’re pleased the state has agreed with the A.C.L.U.’s position that imposing a new restriction on voters in the midst of an election is a recipe for disaster,” he said in a statement. “For now, the voters of Wisconsin will be able to cast their ballots free from the burdens placed on them by this law. But this should be the case for voters permanently, not just for one election.”