Frequent run-ins with Indian government complicates tech giants’ plans