The state law had said public schools would have to display the Ten Commandments in a “conspicuous” location in every classroom in Texas by Sept. 1.