Shia/Sunni discriminating against each other is religious discrimination, which is banned in the US. Han Chinese discriminating against non-Han is racial discrimination, which is banned in the US. Indians discriminating against other Indians based on cast is not banned, if they share the same race and religion. The new law aims to remedy this gap.
Historically this sort of discrimination is incredibly sticky whenever it appears. People teach their kids and their kids teach their kids and so on. Then their neighbors, media, etc... reinforce the stereotypes with stories about said groups. It's incredibly difficult to stamp out because it is so self-reinforcing.
I see no reasonable way that a law saying caste-discrimination isn't ok will cause people to start discriminating by caste. I think that's utter nonsense and you're going to have to provide some kind of evidence for such an outlandish assertion.