Great question — answering as the UphillTech team:
It's quite possible the derailleur cage got bent or twisted when it caught the spokes or it may have happened during your Trailside repair after the fact. The derailleur cage plates of a 12 speed Shimano system, especially weight conscious models like XT, are not very robust. Replacement cage plates are sold, but you may note sellers seem to be out of stock of one or both, inner and outer, plates owing to the fact this may be a frequent problem. The best way to begin would be to set up the derailleur like a new install, which should've been the case with the hanger replacement. The cage, when viewed from the rear, should be nice and parallel to the plane of the cassette cogs. Note that the...
Full answer by Jeff: https://bicycles.stackexchange.com/a/97077 (CC BY-SA 4.0).
Need it done for your business? UphillTech.