Many emergency landings happen in airfields where parts aren't readily available. If that's the case the airline usually flies the parts there on their own or partner aircraft.
If flying in parts to fix your own plane is against US sanctions... then India should ignore those just as they have the rest of the sanctions against Russia.