The government of Indian Prime Minister Narendra Modi has suffered a huge setback after a landmark Supreme Court ruling found that citizens have a fundamental right to privacy.