I'm not aware of an extra tankage mod or STC for the 787, particularly as the aircraft concerned was flying for Aeromexico until January of this year.
A light aircraft with full tanks can just about manage 10,000 nm (still air), according to Boeing figures, so a bit of wind assistance probably contributed.