The deal will allow Google to compete with rivals Microsoft and Amazon, and help Zebra scale its business.