(CNN) – Mark Sanford, elected to the U.S. Congress Tuesday in South Carolina, will no longer be required to appear in court this week to face allegations he violated his divorce terms after trespassing at ex-wife Jenny's beach house.
A consent order from family court in Charleston County indicates the two parties reached an agreement ahead of the May 9 court date, under which Sanford admitted "that he is in contempt for this and previous instances of trespassing upon plaintiff's property."
The former governor also agreed to pay fees and costs totaling $5,000 to his ex-wife.
In April, as Sanford was waging a political comeback campaign for Congress in South Carolina, he was accused by his ex-wife of trespassing at her Sullivan's Island home. Under the terms of their 2010 divorce, neither party can enter the other's home without permission.
Sanford later said in a statement he was simply watching the Super Bowl with one of his sons, and could not get in touch with Jenny Sanford beforehand.
An examination of the court documents obtained by CNN suggested that Sanford has repeatedly entered Jenny Sanford's beachfront home without permission.
Sanford has "entered into a pattern of entering onto Plaintiff's property, both at her former and current residences, without her permission and against her wishes," according to a complaint filed in Charleston County family court on March 21. It asked that Sanford be held in contempt of court.
Jenny Sanford has informed Sanford "on a number of occasions that this behavior is in violation of the court's order, and has demanded that it not occur again," the complaint read. The document does not include details about previous trespassing accusations.
The couple were divorced in 2010 after the then-governor admitted he was carrying on an extramarital affair with a woman from Argentina. He finished out his gubernatorial term in 2011 and has since become engaged to the same woman.
On Tuesday, Sanford completed his political comeback, defeating Democratic rival Elizabeth Colbert-Busch in South Carolina's first congressional district by a nine point margin.
CNN's Peter Hamby contributed to this report.