Britney Spears and Kevin Federline
INF; Bruce Gifford/FilmMagic
and Kevin Federline
's custody settlement was signed Friday by a judge, officially ending their nearly two-year custody battle.
In the deal reached last week
, Federline retained sole custody of Preston, 2 1/2, and Jayden, 1 1/2. Spears – who is currently allowed two visits and one overnight per week – will get an additional sleepover by year's end, barring any setbacks.
"She's thrilled," the pop star's attorney Laura Wasser told PEOPLE. "To have more time with her kids has been her motivation to get well. In light of her outstanding conservatorship, she couldn't have asked for anything more."
Spears also agreed to increase Federline's child support to $20,000 a month (a $5,000 increase) and pay off his $250,000 legal tab. Documents show the child support increase went into effect on July 15, and that Spears's father, who remains in legal control of her affairs until a July 31 hearing, approved of the settlement terms.
"This has been a long ordeal [for Kevin] and for it to be over makes him very happy," his lawyer Mark Vincent Kaplan previously said.
Legal experts say the former couple will undoubtedly return to court in the future, since custody settlements can always be modified.