Mr Gattani, 37, had been charged with two felony counts of domestic violence, but pleaded no contest to felony accessory and a misdemeanor count of offensive touching.
Prosecutors agreed to a six-month jail term, to be served through a weekend work programme with 30 days of incarceration. With credits, Mr Gattani could spend 15 days in custody. Sentencing is now scheduled for June 15.
"The system has shown me that concerns over Abhishek's immigration status have completely trampled rights of my daughter, and my own," Ms Rastogi said in a report in the San Francisco Chronicle.
Ms Rastogi had recorded a nearly six-minute-long video on May 17 last year, in which one could hear repeated thwacks in the presence of their then two-year-old daughter.
She said Mr Gattani used to verbally abuse her as well. The report said the case offers an insight into California's efforts to shield immigrants from undue harm, including a 2015 law that requires prosecutors to consider ways to head off deportations.
The report added that in an April 28 memo to the court, Santa Clara County Assistant District Attorney Brian Welch defended the plea deal as tough, saying it "struck hard blows, but not foul ones," and took into account several factors, including the strength of the evidence, inconsistent statements in the past by Ms Rastogi, and the likelihood of winning a conviction if the case went to trial.
"Rastogi laments that Defendant is once again getting a reduction of felony domestic violence charges because of possible immigration consequences, as he did in 2013, but that is not so," Welch said, referring to Mr Gattani's previous arrest on suspicion of misdemeanour domestic violence.
In the 2013 case, Mr Gattani had pleaded to a misdemeanour count of disturbing the peace.
Welch said his immigration status was only one factor in the decision to offer that disposition, just as it is only one factor in the current case.
But she said she was done defending her husband. Prosecutors noted that Mr Gattani has been in the country lawfully since 2003, has a child who is a US citizen, and employs nine people at his company.
Prosecutors sought a conviction "that would hold the defendant accountable but at the same time not make the defendant necessarily deportable," Welch said in an interview to the paper.
Mr Gattani's attorney Michael Paez has also called the settlement fair, adding that he too was legally obligated to protect his client's immigration interests.
While Ms Rastogi is a US citizen, Gattani is believed to have a green card, according to court documents. Ms Rastogi criticised the deal while making a victim-impact statement to the court.
She said in her court statement that her husband of 10 years abused her "for the entire duration" of their marriage by hitting her, pulling her hair, calling her names and threatening to kill her.
In a statement to a divorce judge in 2016, Ms Rastogi said she was eight months pregnant when Gattani allegedly beat her during the 2013 incident that prompted his arrest.
However, prosecutors said in their April 28 memo, she actually gave birth to her daughter three months before that incident.
Follow NDTV for latest election news and live coverage of assembly elections 2019 in Maharashtra and Haryana.
Subscribe to our YouTube channel, like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.