Texas Attorney General-elect Nathan Johnson said he would stop defending the state’s law requiring public schools to display the Ten Commandments, changing the state’s position as the U.S. Supreme Court considers whether to review a challenge to the requirement. Johnson, a Democrat, told The Dallas Morning News this week that he considered the law unconstitutional, breaking with outgoing Republican Attorney General Ken Paxton, who supported the legislation.

The requirement, enacted by Texas’ Republican-led Legislature as Senate Bill 10, calls for a prominently displayed copy of the Ten Commandments in every classroom in the state’s public schools and open-enrollment charter schools. In April, the 5th U.S. Circuit Court of Appeals upheld the law, ruling that it did not violate the Constitution. Supporters, including religious freedom advocates, have argued that the biblical text is an important part of America’s legal, moral and historical heritage.

Johnson acknowledged that courts would ultimately determine whether the law was constitutional, but said he would decide what position the state took in the litigation. He told the newspaper that his office would not maintain the position Texas had previously argued. Johnson was the first Democrat elected Texas attorney general in nearly three decades. His election was among several Democratic victories in Texas, including the races for governor and the U.S. Senate.

Paxton’s office has already cited Johnson’s opposition in asking the Supreme Court not to take up the challenge, according to The Dallas Morning News. In a filing earlier this month, the office’s attorneys argued that Johnson might not adequately defend the requirement if the justices agreed to hear the case. Paxton’s argument was that the court could be deprived of an opposing presentation of the legal arguments because the incoming attorney general would not support the law.

The Supreme Court’s decision on whether to hear the challenge will determine whether the appeals court ruling receives further review. If the justices decline the case, the ruling upholding the classroom requirement would remain in place, preserving Paxton’s legal victory before he leaves office in January.