Amit P. Mehta ruled the government could proceed to trial with its allegation that Google illegally shielded its monopoly with multibillion-dollar deals to make its search engine the default on smartphones and browsers. But he ruled out other claims.