Unionized janitors across the state approved a new collective bargaining agreement on Monday night, averting a strike.

Service Employees International Union United Service Workers West members in Los Angeles County, Orange County and the Bay Area approved the new deal that covers wages and includes protocols for workers to report sexual harassment and assault, the union announced.

The union membership had authorized a strike if negotiators were not able to reach a deal over the weekend.

•RELATED STORY: Janitors rally in downtown LA as strike looms

The janitors and their supporters held a rally in downtown Los Angeles Friday and in other areas of the state in advance of a contract-negotiation deadline.

“It’s a good day for the hard-working janitors who mop, clean and take out the trash in the buildings of California’s most successful businesses and tech companies,” David Huerta, president of SEIU USWW, said in a statement. “But today’s victory is only the beginning. Immigrant women janitors often work long night shifts, alone in large buildings and are vulnerable to sexual harassment and assault. We will not rest until we stop the violence against women janitors.”