Oregon's governor on Wednesday said federal tactical police had agreed to withdraw from Portland, though U.S. officials said agents would stay until conditions improved after weeks of clashes with protesters.

Gov. Kate Brown said Vice President Mike Pence agreed to a "phased" end to the deployment that has sparked a standoff between Republican President Donald Trump and Democratic mayors over the use of federal police in their cities.

Under the plan, all Customs and Border Protection (CBP) and Immigration and Customs Enforcement (ICE) agents protecting a federal courthouse will start to leave downtown Portland on Thursday, Brown said in a statement. The head of U.S. Homeland Security said agents would stay near the courthouse until they were sure the plan was working.