Former San Diego Mayor Bob Filner, who resigned amid sexual harassment accusations, was sentenced to three months of home confinement and three years probation for acts against three women.

Filner, 71, was sentenced Monday in state Superior Court after pleading guilty to the charges against him in October in exchange for a plea bargain that would keep him out of jail.

Judge Robert Trentacosta on Monday also ordered Filner not to seek nor hold public office during his probation. Filner, who had served 10 terms in Congress before becoming mayor, also was fined $1,500.

In a statement before the sentencing, Filner apologized to his family, his staff and his supporters, and to “the women I have hurt and offended.”

“I look forward to making further contributions to the city I love,” he said, adding that he would work to regain the public’s trust, according to the Los Angeles Times.

Filner, who is Jewish, resigned in August after the San Diego City Council unanimously approved a deal under which he agreed to leave office by August 30 in exchange for the city agreeing to pay his legal expenses in a sexual harassment lawsuit brought by his former aide.

Nineteen other women publicly accused Filner of acting inappropriately and sexually harassing them.