Edinburgh's trams have been blamed for the Scottish Government's slow progress on a major road project.