The legislation drew opposition from local residents who said lawmakers should not approve the project without knowing the route, costs and who the builder will be.