A Montgomery County judge ruled Monday that Maryland Gov. Larry Hogan can continue using an apple logo in his reelection campaign materials, delivering at least a temporary victory to the Republican governor in his latest spat with the state’s teachers union.

The Maryland State Education Association had sued Hogan over bumper stickers that featured an apple and the phrase “Teachers for Hogan.” The teachers’ union, which endorsed Hogan’s Democratic opponent, Ben Jealous, asked the governor to stop using the apple, for which the Montgomery County Education Association holds some trademark protections.

Hogan responded to the union’s request by sending campaign staffers to MSEA headquarters with a fruit basket and a note saying, “there are plenty of apples to go around!” The teachers’ union sued the governor’s campaign for trademark infringement.

On Monday, Montgomery County Circuit Judge Michael Mason denied a preliminary injunction to immediately block Hogan from using the apple in campaign materials, according to both union officials and Hogan’s lawyer.

The union, whose leadership Hogan has publicly derided as “thugs,” promised to pursue the lawsuit to trial, even it is not resolved before the Nov. 6 election.

The teachers filed a similar lawsuit in 2014 when then-attorney general Douglas F. Gansler handed out apple-shaped ballots before the gubernatorial primary. Gansler and the teachers settled that lawsuit six months after the election.