The Supreme Court has rejected the Trump administration’s efforts to restrict mail-in ballots for the upcoming midterm elections in the 7-2 decision.

The decision has allowed a lower court ruling to stay in place that blocked the federal government from only delivering ballots to individuals who were verified registered voters in their respective states.

Justice Kavanaugh concurred with the ruling provided by the majority, saying that the new rule imposed by the United States Postal Service may be legal, but the move was made too close to the midterm election.

Justices Clarence Thomas and Samuel Alito were the lone dissenters in the case. Alito took aim at Kavanaugh’s decision in his dissent, claiming that the courts were to blame for the case coming before the Supreme Court so close to Election Day.

The ruling deals a significant blow to Republicans who hoped to rein in mail-in ballots after Republican leadership in the Senate failed to advance election security measures before the election.