The U.S. Supreme Court has reversed a ruling that Texas lawmakers discriminated against minority voters by engaging in racial gerrymandering when redrawing voting districts in 2011.

In their 5-4 decision today in Abbott v. Perez, a majority made up largely of the court’s more conservative justices determined that a three-judge panel overreached last year when it concluded that the state’s proposed congressional districts violated the federal Voting Rights Act and the U.S. Constitution by slicing up Latino-populated areas on the maps to limit voting power.