Updated Oct. 26: Revised to reflect that Dickinson has removed the requirement for residents.

Residents applying for Hurricane Harvey relief grants for the storm-battered city of Dickinson are no longer asked as part of the terms of the agreement to not boycott Israel, a requirement the ACLU had called unconstitutional.

The city began accepting applications Oct. 11 for grants to rebuild homes or businesses damaged in the storm that made landfall Aug. 25. The grant money was donated to the Dickinson Harvey Relief Fund.

"By executing this Agreement below, the Applicant verifies that the Applicant: (1) does not boycott Israel; and (2) will not boycott Israel during the term of this Agreement," the form said.

Excerpt from the city of Dickinson Hurricane Harvey Repair Grant Application and Agreement.

On Tuesday, the Dickinson City Council voted to remove that requirement for homeowners, The Galveston County Daily News reports. The language remained in the form posted online as of Thursday, however.

ACLU of Texas Legal Director Andre Segura had called the requirement "an egregious violation of the First Amendment" and said it was reminiscent of "McCarthy-era loyalty oaths requiring Americans to disavow membership in the Communist Party and other forms of 'subversive' activity."

"The First Amendment protects Americans' right to boycott, and the government cannot condition hurricane relief or any other public benefit on a commitment to refrain from protected political expression," Segura said in a written statement.

The language is reflective of a law passed in the last legislative session that prohibits all state agencies from contracting with or investing in companies that boycott Israel. The law, which is similar to laws in at least a dozen other states, took effect Sept. 1.

In January 2016, Gov. Greg Abbott met with Israeli Prime Minister Benjamin Netanyahu in Jerusalem and said that he wanted legislators to work to approve such a ban.

When he signed the bill into law in May he said that "any anti-Israel policy is an anti-Texas policy."

Dickinson's city attorney said that businesses applying for relief funds will still have to vow not to boycott Israel to comply with the law.

State Rep. Phil King, who wrote the bill, told the Israeli publication Haaretz that subjecting homeowners to the requirement was probably just a misunderstanding of the law.

"They have been in a tremendously difficult situation since the hurricane," the Weatherford Republican said. "I think this is simply a result of confusion over the implementation" of the law.