Government and judicial union reach preliminary agreement