A divided Supreme Court on Wednesday allowed Virginia to implement a program that state officials say is aimed at removing suspected noncitizens from its voter registration rolls, siding with Republicans in one of its first significant decisions tied to next week’s election.