Motel 6 then introduced a policy prohibiting its locations from sharing information about its guests with law enforcement officials unless the hotels are compelled to.

Of the $8.9 million that Motel 6 agreed to pay, up to $7.6 million would go to plaintiffs across the country, said Thomas A. Saenz, president of the Mexican American Legal Defense and Educational Fund, the nonprofit that represents the plaintiffs named in the lawsuit. The rest of the money, $1.3 million, would go to the plaintiffs’ legal fees and to pay for the administration of the settlement.

The proposed settlement, filed last week in the United States District Court for the District of Arizona, would offer monetary damages to guests across the country who come forward and show that their private information had been offered to the government beginning in February 2017. The agreement requires the approval of the District Court, which has yet to rule on it.

Former guests who were interrogated by immigration authorities as a result of having their information leaked would receive a class-wide total of $1 million, while those who were placed in immigration removal proceedings would receive a total of up to $5.6 million, according to court documents. Plaintiffs whose information was shared but who were not affected further would receive a total of up to $1 million.

The proposed settlement also calls for Motel 6 to put into effect a policy requiring employees to withhold guests’ information from immigration authorities in the event that they do not have a warrant or subpoena — unless there is reason to believe doing so is necessary to prevent a “significant crime,” according to court documents.