NEW YORK/SAN FRANCISCO (Reuters) - Google Inc is paying $12.5 billion to buy phone maker Motorola Mobility Holdings Inc, its biggest-ever deal, as protection against legal challenges from Apple Inc and other mobile rivals.