A family in Brazil will not appeal a custody ruling that will return a 9-year-old boy to New Jersey, Fox News has learned.

"There comes a time when you have to say the war is over," said Sergio Tostes, an attorney for the Brazilian family. "We could appeal but that would only prolong the suffering. We don't want to prolong this any more."

Brazils' chief justice ruled Tuesday that the boy be turned over to David Goldman in a decision that appeared to bring the case in line with international custody accords.

The boy, Sean, was taken by Goldman's now-deceased ex-wife to her native Brazil in 2004, where he has remained. Goldman, of Tinton Falls, New Jersey, has been fighting to get him back from the boy's stepfather.

Both the U.S. and Brazilian governments have said the matter clearly fell under the Hague Convention, which seeks to ensure that custody decisions are made by the courts in the country where a child originally lived — in this case, the United States.

Goldman's New Jersey-based lawyer, Patricia Apy, said Tuesday that she believed the order by Supreme Court Chief Justice Gilmar Mendes required Sean to be handed over immediately, but she said Goldman's attorneys had not heard from lawyers for the Brazilian family.

Lawyers on both sides have said there was still a chance for the Brazilian family to appeal to Brazil's highest appeals court, though the chances of success seemed slight.

Goldman declined to comment until he learned more details about the 50-page ruling. Calls to the Brazilian family's lawyer were not returned.

U.S. Rep. Chris Smith, a New Jersey congressman who traveled to Brazil to offer his support, said Goldman was pleased.

"He was elated, a big smile came to his face, but he said 'I'm not going to let my guard down until it's wheels up,"' Smith said.

Goldman launched his case in U.S. and Brazilian courts after Sean was taken by his mother to Brazil, where she then divorced Goldman and remarried. She died last year in childbirth, and the boy has lived with his stepfather since.

A lawyer specializing in the Hague Convention said Tuesday's decision by Mendes was the only right one to make.

"It would be virtually impossible to reconcile international law with a ruling in favor of the Brazilian family," said Greg Lewen of the Miami-based law firm Fowler White Burnett.

He said that if the Hague Convention were not followed by the chief justice, "the State Department should immediately issue a travel advisory warning parents not to go to Brazil with their children."

Smith, the congressman, said the fact that the Brazilian chief justice ruled Sean should be with his father would take the steam out of any appeal from the stepfather, himself a lawyer from a prominent family of Rio de Janeiro attorneys.

During a teleconference with U.S. journalists late Tuesday, Smith said law enforcement was on guard in case the Brazilian family did not transfer Sean. He said the international police agency Interpol had been notified to make sure Sean was not flown out of Brazil.

"Our hope is, given the prominence of this family in legal circles, that's less likely to happen," Smith said.

Silvana Bianchi, Sean's maternal grandmother, wrote an open letter to Brazilian President Luiz Inacio Lula da Silva just hours before the Tuesday ruling, in which she said cultural differences and international pressure were driving the case.

"Our moral foundation values the mother's role. In the absence of the mother, the raising should be done by the grandmother," she wrote. "That's how it's done in Brazil, from north to south, regardless of race, religion or social class. It's natural that foreigners, with a different foundation, would not understand these authentically Brazilian feelings."

Meanwhile, Goldman has said his parents and other relatives have been waiting for years to be reunited with Sean.

Silva has said he would not intervene in the case, that it was purely a matter for Brazil's legal system.

The case has affected diplomatic ties between Brazil and the United States, as the U.S. State Department applied pressure for the boy to be returned. President Barack Obama and Silva have discussed the matter.

Last week, U.S. Sen. Frank Lautenberg of New Jersey reacted to the case by blocking renewal of a trade bill that benefits more than 130 countries, including Brazi, by allowing them to export a variety of products duty-free to the United States. Brazil is the fifth largest beneficiary from the duty-free provision, receiving an estimated $2.75 billion in benefits last year, according to Lautenberg's office.

Lautenberg lifted the hold after Tuesday's ruling in Brazil and the U.S. Senate quickly passed the trade measure.

The Associated Press contributed to this report.