Oppositionsledaren dömdes till fängelse för förtal av premiärministern Narendra Modi.