Legal battles pitting the U.S. Department of Justice against Google may shape the tech giant’s future outlook for years to come.