Richard, here is the list of Stewards' documents for the race:
https://www.fia.com/documents/champi...ason-2024-2043
Basically, Ricciardo was overtaken by Hulkenburg prior to the reverse overtake by Ricciardo; however the initial pass was permitted under a certain rule, which meant that Ricciado's perceived taking back his place was not permitted. Hope you can understand my explanation.