WASHINGTON—The Trump administration’s recent decision to roll back affirmative action guidelines sent a ripple through the nation’s colleges and universities, but it will also likely have a far-reaching impact on K-12 schools.

Public school districts across the country have long wrestled with how to desegregate their schools in ways supported by the law, which forbids districts from using the race of individual students to determine their placement.

During...