The Supreme Court has affirmed the right to walk. But the real test lies in whether the state will protect pedestrians, or continue to weaponise “encroachment” against the poor