Just Eat had been trying to sell its struggling US unit since 2022, after buying it for 7.3 billion dollars during the pandemic.