SEATTLE — The Seattle City Council on Tuesday voted to cut ties with banking giant Wells Fargo over its role as a lender to the Dakota Access pipeline project as well as other business practices.

The crowd erupted in cheers and chanted "water is life" when the council unanimously passed the measure, which directs officials to end the city's contract with the San Francisco-based bank once it expires in 2018 and not to make new investments in Wells Fargo securities for three years.

"The example that we have set today can become a beacon of hope" for activists across the country, said Councilmember Kshama Sawant, who co-sponsored the legislation.

Seattle's measure comes on the same day that the Army told Congress that it will allow the $3.8 billion Dakota Access oil pipeline to cross under a Missouri River reservoir in North Dakota, completing the disputed four-state project. The stretch is the final big chunk of work on the 1,200-mile pipeline that would carry North Dakota oil through the Dakotas and Iowa to a shipping point in Illinois.

The Standing Rock Sioux, whose reservation is just downstream from the pipeline's crossing, fears a leak would pollute the tribe's drinking water. The tribe has led protests that drew hundreds and at times thousands of people who dubbed themselves "water protectors" to an encampment near the crossing.

Tribal members urged the Seattle council to send a broader message to oppose the pipeline and stand with indigenous people.

"You have been a city setting the example to the world and I look to you to do that now," Olivia One Feather, a member of the Standing Rock Sioux tribe, told the council. "When big cities such as this do the right thing, it sparks hope in the world."

Environmental activists across the country have called on a number of banks to stop financing the construction of the oil pipeline as well as on individuals to pull their money out of those banks.

Wells Fargo has said it is one of 17 involved in financing the pipeline and that it is obligated by carry out its credit agreement. The bank is providing $120 million of the $2.5 billion.

"While we are disappointed that the city has decided to end our 18-year relationship, we stand ready to support Seattle with its financial services needs in the future," said Tim Brown, Wells Fargo Middle Market Banking regional manager.

Wells Fargo manages more than $3 billion of Seattle's operating account, processing everything from payroll and vendor payments to revenues collected from city business taxes to city fines.