Google is moving aggressively on — and paying billions of dollars for — the technology and talent it needs to create successful smart home and robotics businesses even as it acknowledges its failure to run a strong smartphone business.