VANCOUVER, Wash. — The Port of Vancouver and environmental groups have reached an agreement that resolves a lawsuit alleging the port violated the open meetings law.

The port said that under the agreement filed Tuesday, it will concede that some meetings held in 2013 didn’t comply with state law.

The port said Tuesday it will pay attorneys’ fees and costs and that the environmental groups including Columbia Riverkeeper have agreed to end its lawsuit.

The Washington Supreme Court in June found that several port meetings to discuss a lease for a proposed oil terminal concerned factors that influenced the lease price and that such discussion must occur in public.

The high court said a lower court erred in ruling in favor of the port and sent the case back for review according to its analysis.

The proposed Vancouver Energy oil terminal officially ended last month, weeks after Gov. Jay Inslee rejected a permit for the project.