Judge Amit Mehta ruled in favor of the Department of Justice, writing that Google has maintained a monopoly in the search and advertising markets.