Two child abuse cases involving a cover-up by one of the cardinals electing the next pope have been settled as part of a $10m (£6.6m) out-of-court deal in Los Angeles.

The Roman Catholic Archdiocese of Los Angeles will make the payouts to victims of a now-defrocked priest who told Cardinal Roger Mahony nearly 30 years ago that he had molested children.

The cases involving ex-priest Michael Baker span 26 years, from 1974 to 2000. Two were set for trial next month. The cases were settled this week.

Two of the claims alleged Mahony didn't do enough to stop Baker from abusing children, said the plaintiffs' attorney John Manly.

Mahony retired as Los Angeles archbishop in 2011 and was rebuked by his successor, Archbishop Jose Gomez, in February after confidential church files showed the cardinal worked behind the scenes to shield molesting priests and protect the church from scandal.

Mahony, one of the cardinals in Rome helping select the next pope, was aware of the settlement, said J Michael Hennigan, an archdiocese attorney. "We have for a long, long time said that we made serious mistakes with Michael Baker and we had always taken the position in these cases that whatever Baker did we were responsible for," he said.

Baker could not be reached for comment. Mahony has apologised repeatedly for his handling of clergy abuse cases. The cardinal was sequestered for the papal conclave and could not be reached for comment on Tuesday.

Manly said: "The person who could have stopped this in its tracks and prevented three out of four of these children from being sexually assaulted is now sitting in Rome voting for the next vicar of Christ," said Manly. "I find that terribly troubling."

Two of the plaintiffs, a pair of brothers, will get $4m each and the two others will get nearly $1m each, Manly said.

Confidential files show that Baker met with Mahony in 1986 and confessed to molesting two boys over a nearly seven-year period. Mahony removed Baker from ministry and sent him for psychological treatment but the priest returned to ministry the following year with a doctor's recommendation that he be defrocked immediately if he spent any time with minors.

Despite several documented instances of being alone with boys the priest wasn't removed from ministry until 2000 after serving in nine parishes.

Baker was convicted of child molestation in 2007 and paroled in 2011. Baker was charged in 2002 with 34 counts of molestation involving six victims but those charges were dismissed because they fell outside the criminal statute of limitations.

Authorities believe Baker may have abused more than 20 children in his 26-year career.

The archdiocese settled more than 500 clergy abuse lawsuits in 2007 for a record-breaking $660m.