The Supreme Court unanimously affirmed the boundaries of Arizona’s legislative districts Wednesday, saying the commission that drew the districts had legitimate reasons for putting more voters in some districts than in others.

“We are thrilled that the ruling was decided in favor of the commission and even happier that the decision was unanimous,” said Joe Kanefield, a lawyer for the redistricting commission.