The government will embed resilience in the early stages of transport projects to avoid costly and disruptive changes during construction.