The City Council voted 12-0 for a resolution by Councilor Tito Jackson (Roxbury) to block city workers from traveling to Indiana on official business due to its new law allowing companies to discriminate against lesbians and gays.
The council passed a similar resolution related to Arkansas - even as that state's governor was vetoing a similar law.
The resolutions go to Mayor Walsh.
"I don't believe money from the residents of the city of Boston should be expended in those states while these laws are on the books," Jackson said.
"I'm proud to stand in the state of Massachusetts, where you can marry anyone you want to marry," he said. "I'm proud to stand in the city of Boston, which had a mayor, in Mayor Menino, who took on organizations who didn't accommodate the people we know and love. ... It's incumbent upon us to actually defend the things we believe."
City Councilor Josh Zakim (Fenway, Beacon Hill, Back Bay, Mission Hill) strongly supported the measures.
"I strongly share [Jackson's] outrage and, I think, the outrage of millions of Americans" at the Indiana law, Zakim said, adding he found it "troubling in this day and age that we're fighting battles like this."
"In the year 2015, in the United States of America, we need to say we are open to business for everybody," he said.
Councilor Matt O'Malley (West Roxbury, Jamaica Plain) agreed with Jackson and Zakim on the "odious" Indiana law. "Mike Pence, the governor of Indiana, ought to be ashamed of himself."
Councilor Steve Murphy (at large) left before the vote on Jackson's resolutions, which were not listed on the official council agenda and which were added to the agenda only at the end of the meeting.