Motel 6 will pay $12 million to settle a lawsuit brought by the Washington state attorney general for providing guest lists to U.S. Immigration and Customs Enforcement agents.

The hotel chain also signed a legally binding commitment barring any locations from handing over guest information without a warrant.

The settlement announced Thursday is the second Motel 6 has reached for providing guests lists to ICE; Last fall, the chain agreed to pay $7.6 million to Hispanic guests to settle a class-action lawsuit over its guest-list sharing.

Motel 6 locations in Washington gave the personal information of their guests – including guests' names, driver's license numbers and room numbers – to ICE on a daily basis, the attorney general's office said in a statement. From 2015 to 2017, seven locations shared the names and other information of some 80,000 guests.

As a result, ICE targeted guests with Latino-sounding names for investigation, leading to the detention and deportation of some guests and the separation of families, authorities said.

"Motel 6's actions tore families apart and violated the privacy rights of tens of thousands of Washingtonians," Washington Attorney General Bob Ferguson said. "Our resolution holds Motel 6 accountable for illegally handing over guests' private information without a warrant."

Washington authorities began to investigate Motel 6's practices after news outlets reported that some of the hospitality chain's locations in Arizona had a practice of sharing guest lists with ICE.

The attorney general's office found that some Motel 6 offices would print their guest lists on a daily basis and had a form that ICE agents would sign when they picked the list up each day.

