The twists and turns that forced Modi’s U-turn on controversial farm laws