A bill sponsored by Sen. Brad Hoylman would provide state benefits to veterans discharged due to their gender identity or sexual orientation.

Hoylman called for the passage of the measure as the military’s ban on transgender troops serving in the military goes into effect on Friday.

“Trump’s transgender military ban is nothing short of state-sponsored discrimination,” Hoylman said. “This is a cruel, arbitrary policy that only dehumanizes our transgender service members, who deserve our respect, and jeopardizes our national security.”

The bill, known as the Restoration of Honor Act, would apply to veterans discharged due to sexual orientation or gender identity and is sponsored by Democrat David Buchwald in the Assembly. The measure was introduced after the repeal of the military’s “Don’t Ask, Don’t Tell” policy, allowing veterans who were previously discharged access to state veterans benefits.

“If Washington won’t stand up for the dignity of transgender Americans, it is up to New York to set an example,” Hoylman said.