Amazon Inc. and Walmart Inc.'s plans to dominate India's online retail landscape have been ambushed by Prime Minister Narendra Modi's political priorities heading into a tightening election.