You can translate this without the passive form "written." Alternate translation: "Those words were also for us" (See: [[rc://en/ta/man/translate/figs-activepassive]])
The word "it" refers to righteousness. You can translate this with an active form. Alternate translation: "God will count righteousness to us who believe in him" or "God will consider us righteous if we believe in him" (See: [[rc://en/ta/man/translate/figs-activepassive]])
"Raised ... from the dead" here is an idiom for "caused to live again." Alternate translation: "him who caused Jesus our Lord to live again" (See: [[rc://en/ta/man/translate/figs-idiom]])