Sporadic protests have erupted in India against a citizenship law that has been criticized for discriminating against Muslims, after Prime Minister Narendra Modi's government implemented the legislation just days before a general election is announced.