TALLAHASSEE (CBSMiami) – The Florida Supreme Court voted Thursday to uphold a law requiring public employees to contribute three percent of their income to the state’s pension plan.

The court voted 4-3 in favor of reversing a trial judge’s ruling that stated the law violated the collective bargaining and contract rights of roughly 600,000 state employees including teachers, state, and county employees and some city workers.

READ MORE: Haiti's contributions to South Florida in full display at Haitian Heritage Month Art Exhibition

The ruling serves as vindication for the law pushed by the GOP-led legislature and signed into law by Governor Rick Scott. The law helped fill a $2 billion budget gap state and local governments that would have had to replace funds contributed by employees since the law went into effect in 2011.

READ MORE: What we know about the victims of the Texas school shooting

The Florida Education Association and other public unions challenged the law.

MORE NEWS: Disaster Preparedness Sales Tax Holiday Starts This Weekend

(TM and © Copyright 2013 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2013 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)