A committee that wants to uphold Massachusetts' transgender anti-discrimination law has vastly outraised and outspent the group that wants to repeal the law.

Voters in November will decide whether to repeal a law protecting transgender people from discrimination in public places and allowing transgender people to use the facilities that match with their gender identity.

According to campaign finance reports filed Friday, Freedom for All Massachusetts, which supports the law, raised $1.8 million in 2018 and spent $1 million. Keep Massachusetts Safe, which wants to repeal the law, raised $106,300 in 2018 and spent $80,000.

Since the start of the campaign in 2017, Freedom for All Massachusetts has raised $2.7 million, while Keep Massachusetts Safe has raised $286,000.

A lot of the money donated to Freedom for All Massachusetts comes from small dollar donations. The committee got 900 donations of $100 or less.

Additional contributions above $100 also came from individual donors. Seth Klarman, CEO of the Baupost Group in Boston, a hedge fund, donated $100,000. Matthew Patsky, CEO of Trillium Asset Management in Boston, which does socially responsible investing, donated $10,000.

The group also got large institutional support. Freedom Massachusetts Education Fund donated more than $500,000. The American Civil Liberties Union and the Human Rights Campaign each donated around $200,000. A number of other state and national gay rights groups contributed to the campaign, including GLBTQ Legal Advocates and Defenders, MassEquality, Freedom for All Americans and others. The healthcare workers union 1199SEIU gave $100,000.

Several corporations also made large donations to help uphold the law. MassMutual donated $50,000; Blue Cross Blue Shield Massachusetts donated $100,000; National Grid, Eastern Bank, Partners Healthcare, Harvard Pilgrim Healthcare and Ernst and Young all gave $25,000.

Freedom for All Massachusetts spent nearly $700,000 on payroll for its staff. Other expenses were for things like digital advertising, office supplies, palm cards, video production and consulting.

Keep Massachusetts Safe, which opposes the ballot question, is funded with $90,000 from the Massachusetts Family Institute, the socially conservative advocacy group that spearheaded the repeal effort. The Renew Massachusetts Coalition, which bills itself as a group dedicated to moving Massachusetts to the right on fiscal and social issues, gave another $63,000.

Keep Massachusetts Safe got just under 200 small dollar donations, of $100 or less, as well as some larger donations from individuals.

Dover retiree Walter Weld donated $20,000. Donors who contributed $10,000 include real estate advisor David Stubblebine; John DeMatteo, a principal at Park Street Group; U-Line Corporation owner Richard Uihlein; investment manager Robert Bradley and homemaker Carol Breuer.

Keep Massachusetts Safe has spent its money on paying staff and consultants, paying for data and web page services, buying digital advertising, and other campaign office expenses.