You can translate this in an active form. Alternate translation: "you also died to the law when through Christ you died on the cross" (See: [[rc://en/ta/man/jit/figs-activepassive]])
"Raised" here is an idiom for "caused to live again." This can be translated in active form. Alternate translation: "to him who was caused to live again" or "to him whom God raised from the dead" or "to him whom God caused to live again" (See: [[rc://en/ta/man/jit/figs-idiom]])
Here "fruit" is a metaphor for actions that please God. Alternate translation: "we might be able to do things pleasing to God" (See: [[rc://en/ta/man/jit/figs-metaphor]])