When a majority opinion has been written, it is shared with the dissenting justices, who then write the dissenting opinion (basically a rebuttal to the majority opinion).
According to an article about the New York State Rifle & Pistol Assn., Inc. v. Bruen Second Amendment case, Justice Alito wrote his own opinion which was a rebuttal to the dissenting opinion:
In his concurrence in the gun case he took on the liberal dissent penned by Justice Stephen Breyer and joined by Sotomayor and Justice Elena Kagan. "Much of the dissent seems designed to obscure the specific question that the Court has decided," Alito complained. [...] Alito wrote that "it is hard to see what legitimate purpose can possibly be served by most of the dissent's lengthy introductory section." [...] He said the "real thrust of the dissent" was that "guns are bad."
Then Justice Breyer modified the dissenting opinion to rebut Alito's opinion:
Breyer -- in writing what may be one of his last big dissents before retirement -- struck back. "I am not simply saying that 'guns are bad,'" he said. But he said that balancing "lawful uses" against the "dangers of firearms" is primarily the responsibility of elected bodies such as legislatures. "Justice Alito asks why I have begun my opinion by reviewing some of the dangers and challenges posed by gun violence," he said. Breyer said he did so because the "question of firearm regulation presents a complex problem -- one that should be solved by legislatures and not courts."
Was Alito allowed to modify his opinion to rebut Breyer's modifications? At what point do the rebuttals stop?