Shares in Alphabet, Google's parent company, jumped by more than 8% after the ruling.
Smartphone-makers such as Apple, Samsung and Motorola will also benefit.
Before the ruling, Google paid such firms billions of dollars to exclusively pre-load or promote the tech company's products.
It was revealed at trial that Google paid more than $26bn for such deals with Apple, Mozilla and others in 2021.
Now, Google will not be allowed to enter into any exclusive contracts for Google Search, Chrome, Google Assistant or the Gemini app.
It means phone manufacturers will be free to pre-load or promote other search engines, browsers or AI assistants alongside Google's.
Google will, however, be able to continue paying distributors for default placement.
Gene Munster, managing partner at Deepwater Asset Management, said the ruling was "good news for big tech".
"Apple also gets a nice win because the ruling forces Google to renegotiate the search deal annually," he said on X.
Judge Mehta's ruling "doesn't seem to be as draconian as the market was expecting," said Melissa Otto, head of research at S&P Global Visible Alpha.
With Google's search operation expected to generate close to $200bn this year, and tens of billions of that expected to go to distribution partners it is a win-win for the major corporate players involved in the case, Ms Otto said.
But Google competitor DuckDuckGo said the order failed to "force the changes necessary to address Google's illegal behaviour".
"As a result, consumers will continue to suffer," said DuckDuckGo founder and CEO Gabriel Weinberg.
The decision is not the end of the tech giant's court battles.
Later this month, Google is scheduled to go to trial in a separate case brought by the Justice Department where a judge found the company holds illegal monopolies in online advertising technology.