The tablet and phone maker has made a deal that hurts the search giant’s efforts to grow its apps and digital store.