SACRAMENTO (AP) — The California Legislature racked up more than $1.8 million in legal costs from sexual harassment investigations during 2018 and the first month of this year when at least nine current or former lawmakers faced allegations of misconduct, according to records obtained by The Associated Press.

The Senate spent $1.26 million and the Assembly $571,000, according to the documents provided under the Legislative Open Records Act.

Neither chamber provided specifics on how many investigations the money paid for nor how exactly it was spent, citing attorney-client privilege and other exemptions in the public records act.

But both chambers previously have disclosed hiring outside attorneys during that time to investigate five current or former Assembly members and four current or former senators.

Their behavior ranged from using vulgar language and giving uncomfortable hugs and a “noogie,” to forcibly kissing a staff member and, in one case, masturbating in front of a lobbyist.

The spending occurred after accusations of widespread harassment at the Capitol surfaced in October 2017 as the #MeToo movement was roiling Hollywood and major corporations.

Four California lawmakers and multiple staffers eventually resigned, and the Legislature has since revamped its policies for reporting and investigating claims of misbehavior.

“It’s not the kind of place you want your taxpayer dollars being used,” said Assemblywoman Laura Friedman, a Democrat representing part of Los Angeles and surrounding communities who led the committee to change harassment policies. “The goal of our new policies is to try to intervene much earlier before we get to a point where you need to have a very large investigation.”

A new “Workplace Conduct Unit” debuted in February to look into all allegations of harassment and discrimination, sexual or otherwise, based on someone’s race, gender or other protected classes. The findings of major investigations will then go to a panel of outside experts who will evaluate them and recommend action to the Legislature.

Lawmakers approved $1.5 million to get the four-person office up and running last year, and its proposed annual budget is $1.7 million. Some investigations could still be sent to outside lawyers, but most complaints will be handled internally, said Julia Johnson, the head of the unit.

“We expect that as this new process moves forward, it will be both effective for employees in stopping harassment and efficient for taxpayers in how it achieves that critical goal,” Senate President Pro Tem Toni Atkins said in an emailed statement.

Assembly Speaker Anthony Rendon said his priority is for staff to feel safe and to create a more respectful, diverse and civil culture.

“For that to happen, we have to investigate workplace misconduct thoroughly and consistently. I will not put a price on the safety of our employees,” he said in an emailed statement.

In 2018, the Legislature went regularly to outside lawyers to look into complaints. Firms hired by the Assembly in 2018 were: Littler Mendelson P.C., Stoel Rives LLP, and Van Dermyden Maddux Investigations. The Senate, meanwhile, hired the Law Offices of Amy Oppenheimer initially and later retained Van Dermyden Maddux and Gibson, Dunn & Crutcher LLP to handle all investigations.

The decision to put two firms on retainer came as the Senate was taking heat over allegations former Sen. Tony Mendoza harassed multiple young women, including offering an underage employee alcohol and inviting another to his home. The firms are no longer handling sexual harassment investigations for the Senate, said Lizelda Lopez, Atkins’ spokeswoman.

Former Senate president Kevin de Leon, who was in charge when the firms were put on retainer, said in a text message that employees’ safety was the top priority and that the outside firms were brought in to ensure complaints were “aggressively investigated, free of any political influence.”

Neither chamber discloses information about allegations that are not substantiated, making it impossible to know the number of investigations actually completed.

The Senate also paid out a $350,000 settlement to an employee who said the chamber failed to accommodate her needs after she alleged an Assembly employee raped her; the Assembly said it paid out no settlements during that time.

The Senate did not respond to questions about whether that $350,000 was part of its legal costs. Republican Assemblyman Steven Choi has introduced a bill that would ban the use of taxpayer money on settlements.

Beyond legal costs, the Assembly and Senate together spent $16,800 hiring an outside consulting firm to conduct a “culture survey” in 2018 to assess whether staff members felt respected and comfortable reporting incidents of harassment to their superiors, among other things.

The money went to a Florida-based firm called TalentKeepers. The company charged $5 for each employee taking the survey, a total of 2,661 people, according to an invoice.

Kim Nalder, a professor of political science at California State University, Sacramento, surmised the public’s reaction to all the spending will vary depending on their feelings about the issues raised by #MeToo. Nearly a year-and-a-half after the movement seized the national spotlight, America still is experiencing a cultural awakening about what behavior now is considered unacceptable, she said.

“Californians who are in the ‘zero tolerance’ camp are going to be horrified that we’re paying to investigate this many examples of gross misbehavior,” Nalder said. “And I suspect some older people will feel like it’s a reflection of a sensitivity that they may find overblown.”

A list of the legislators and allegations:

— Former Assemblyman Matt Dababneh: Investigators substantiated allegations he followed a lobbyist into a bathroom and began masturbating in front of her at an event in Las Vegas in 2016. The Democrat resigned but denies the allegations and sued the lobbyist for defamation.

— Assemblywoman Cristina Garcia: She was cleared of allegations she groped a former legislative staff member in 2014 but investigators found she used vulgar language in violation of the chamber’s sexual harassment policies. The Democrat won re-election in 2018.

— Assemblyman Devon Mathis: He was reprimanded for making sexual comments about other lawmakers, described by investigators as “locker room talk.” The Republican won re-election in 2018.

— Former Assemblyman Raul Bocanegra: Investigators say he harassed several women while serving as an Assembly staff member about a decade ago. In one case, he put a subordinate’s bracelet down his pants and asked her to retrieve it. The Democrat resigned in late 2017 but maintained his innocence.

— Former Assemblyman Sebastian Ridley-Thomas: Investigators found he likely forcibly kissed a woman. The Democrat denies the allegations but resigned in late 2017, citing health reasons.

— Former Sen. Tony Mendoza: Investigators say he likely engaged in unwanted “flirtatious or sexually suggestive” behavior with six women, including four subordinates, a lobbyist and a young woman in a fellowship program. The behavior included offering a 19-year-old intern alcohol in a hotel suite at a Democratic Party event. The Democrat resigned in February 2018 but denied wrongdoing.

— Sen. Bob Hertzberg: Investigators found he gave people hugs that made them uncomfortable but concluded it wasn’t meant to be sexual. The Democrat stayed in office.

— Sen. John Moorlach: Investigators say he gave a woman a “noogie,” but did not intend it to be sexual. The Republican still is in office.

— Former Sen. Joel Anderson: Investigators say he threatened to slap a lobbyist at a bar near the Capitol, which he denied, and rubbed her shoulders. Anderson, a Republican, was termed out of office in 2018 and lost a bid for a seat on a state tax board.