SANTA CLARA COUNTY (CBS SF) — Santa Clara County officials and union leaders struck a tentative four-year deal, which averts a strike Tuesday morning, according to the Service Employees International Union Local 521.

Union leaders planned to strike at 6 a.m. with thousands of county workers set to walk off the job, according to the union.

The county sought an injunction Monday to block the strike and a judge ruled that only 475 workers had to stay on the job if a strike were called, union officials said.

SEIU represents workers from a number of county departments such as 911 County Communications, the Health and Hospital System and Social Services.

Union members must still vote on the deal and the board of supervisors must approve it, union officials said.

© Copyright 2015 by CBS San Francisco and Bay City News Service. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.