The Supreme Court ruled Thursday that the Texas Department of Motor Vehicles acted lawfully in rejecting a license plate displaying the Confederate flag.

The court ruled that license plates represent “government speech,” meaning the Texas DMV can control license plate contents without limiting the rights of the private parties who submit designs or slogans, according to the 5-4 ruling.

The Texas Division of the Sons of Confederate Veterans (SCV) had applied for a line of specialty license plates with its own design depicting the Confederate flag logo in 2013. The group argued the DMV violated the free speech clause of the First Amendment when it rejected the design for being offensive to the public, and the case reached the Supreme Court in December.

“Each plate is a government article serving the governmental purposes of vehicle registration and identification,” Justice Stephen Breyer wrote for the majority. The ruling also asserted that the government is itself protected by the Free Speech Clause, so the Texas DMV is free to set its own limits for accepting specialty plates.

In this case, the SCV design — a square Confederate flag, encircled by the group’s name and founding date, all superimposed over a faded Confederate flag receding into the distance — crossed the line.

A designer of a controversial Georgia license plate featuring the Confederate flag told TIME in 2014 that the plates were intended to celebrate history, and not cause offense. “The design is just people trying to show who they are and trying to be proud of their heritage,” said Jack Bridwell, state commander of the Georgia division of the Sons of Confederate Veterans.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Julia Zorthian at julia.zorthian@time.com.