Narendra Modi said Australia’s efforts to regulate social media and protect young users were setting an important precedent.