Yahoo will supplant Google’s search engine on Firefox’s Web browser in the U.S., signaling Yahoo’s resolve to regain some of the ground that it has lost in the most lucrative part of the Internet’s ad market.