The government has vowed to pursue a new route for part of the motorway after a groundswell of opposition to the original plan.