Apple shares rose 3% in extended trading Tuesday after a federal judge ruled that Alphabet may continue making payments to preload Google Search on the iPhone.

Stopping Google’s payments to be the default search engine would impose “substantial” harms, according to the judge.

Apple shares rose 3% in extended trading Tuesday after a federal judge ruled that Alphabet may continue making payments to preload Google Search on the iPhone.