The logic of the timeline rules established in Avengers: Endgame, Loki, and What If...? suggests that -- unlike in Back to the Future -- old timelines are never overwritten by new ones. Instead, any deviation from an existing timeline will create a new timeline branching off from the one it was spawned from.
We get a pretty clear example of this in the first episode of What If...?, when Peggy Carter makes a different choice than the one she made in Captain America: The First Avenger, and the Watcher indicates that this triggers the creation of a new universe.
THE WATCHER: Time. Space. Reality. It's more than a linear path. It's a prism of endless possibility, where a single choice can branch out into infinite realities, creating alternate worlds from the ones you know. I am the Watcher. I am your guide through these vast new realities. Follow me and ponder the question... "What if...?"
THE WATCHER: Earth, June, 1943. The Nazi army marches across Europe, leaving death and destruction. The Allied armies band together to create a new kind of soldier. A Super Soldier. At humanity's darkest hour, a skinny kid from Brooklyn became Captain America. After turning the tide of World War II, he made the ultimate sacrifice, restoring peace and saving this universe. But in another universe, a single choice created a whole new hero.
STEVE ROGERS: All this to make one Super Soldier.
PEGGY CARTER: Paris has fallen. London might be next. If this works, you could end the war. We mere mortals can only dream of doing such things.
DR. ABRAHAM ERSKINE: Agent Carter, wouldn't you be more comfortable in the booth?
PEGGY CARTER: No, I'd prefer to stay.
THE WATCHER: There. That's the moment that created a new universe. When asked to leave the room, Margaret "Peggy" Carter chose to stay. But soon it would be her venturing into the unknown and creating a new world.
What If...? - S01E01 - "What If... Captain Carter Were The First Avenger?"
Following that logic, when the villains were sent back their original universes, it shouldn't in principle have erased the timelines we saw in the Tobey Maguire and Andrew Garfield Spider-Man films. Instead, new timelines should've been created, branching off from the existing ones.
In terms of the future history of those new timelines, that's very hard to predict, partly because we don't know whether the spell Dr. Strange cast to make everyone lose all memory of Peter Parker also applied to those other universes.
Either way though, it doesn't seem very likely that Norman Osborn and Max Dillon would still have died fighting their respective Spider-Men, since Osborn was cured of his evil Goblin persona, and Dillon lost his powers entirely.
Dr. Octopus might still have died, since he was apparently transported to the MCU shortly before he willingly sacrificed himself to save New York City, as shown in the scene below from near the end of Spider-Man 2 (2004). Assuming the cured Ock arrived back at the same moment he left, he'd probably still choose to make that sacrifice.