The U.S. Border Patrol will share records of every traffic stop it makes in Washington state's Olympic Peninsula for 18 months with immigrant advocacy groups as part of a settlement to a lawsuit that alleged agents were racially profiling people they pulled over.

The agreement, filed Tuesday, settles a lawsuit filed last year by the American Civil Liberties Union and the Northwest Immigrant Rights Project. The lawsuit said people were pulled over and questioned for the way they looked and without reasonable suspicion.

As part of the settlement filed in federal court, the agency also agreed to retrain its agents on the Fourth Amendment, which prohibits unreasonable searches and requires warrants.

The Border Patrol, though, admits to no wrongdoing in the settlement.