The crowd quickly turned on Ms. Gutiérrez, drowning out her chants with shushing noises and shouting of their own, including chants of the president’s name. One man shouted, “Shame on you!” Another yelled: “This is not for you! This is for all of us!”

In a statement, GetEqual and Familia QTLM, activist groups of which Ms. Gutiérrez is a member, said that her protest was held on behalf of “some 75 transgender detainees” who they said were exposed to abuse in the custody of Immigration and Customs Enforcement.

“There is no pride in how L.G.B.T.Q. and transgender immigrants are treated in this country,” Ms. Gutiérrez said in a statement. “If the president wants to celebrate with us, he should release the L.G.B.T.Q. immigrants locked up in detention centers immediately.”

On Tuesday, 35 members of Congress sent an open letter to the secretary of the Department of Homeland Security to express their concern for lesbian, gay, bisexual and transgender detainees held by the immigration agency, writing that they are “extremely vulnerable to abuse, including sexual assault.”