Did God ever accept a sacrifice that was against His own law?
The short answer is no if offered to pagan gods which are none other than demons.
The Scriptures are quite clear on this!
3 Thou shalt have no other gods before me.
4 Thou shalt not make unto thee any graven image, or any likeness of any thing that is in heaven above, or that is in the earth ...
Christ was the fulfillment of a prophecy made thousands of years earlier by Abraham during the sacrifice of Isaac, his son.
And Abraham said, My son, God will provide himself a lamb for a burnt offering: so they went both of them together.
Circa 27 CE this was fulfilled.
The next day John seeth Jesus coming unto him, and saith, Behold the Lamb of ...
Jesus was not 'burnt'.
Jesus was not offered to Molech or any other god.
Jesus offered himself, voluntarily. He was not 'offered' by another.
The "commandment of the Father is everlasting life" (John 12:50) ergo, the sacrifice was not a contradiction of Deity in any way, as that sacrifice was the only possible way to fulfill that commandment.