He did so without violence by participating in labor strikes as well as putting together a huge non-violent march. The government ended up listening to Gandhi and the people standing with him. Gandhi helped fight injustices in society for the rest of his life but only nonviolently. If violence ever occurred when people were protesting with Gandhi he would stop the march or protest, and even when people with opposing opinions attacked with violence, Gandhi only fought back in nonviolent ways. In many cases Gandhi did achieve what he was standing up for which means that he did positively impact society even though he was was resisting the law, but it was in a peaceful way.
Even back in olden times in American politics, peaceful resistance to law was something done on multiple occasions. When the US wanted freedom from Britain they originally started out by using nonviolent methods. The colonists refused to purchase goods under the Stamp Act as well as the Townshend Act, which was basically boycotting but still remained peaceful. This peaceful resistance against the law did get Britain's attention without any violence which once again positively impacted the