The Supreme Court ended its term with a number of decisions that split the court along ideological lines, a finish that underscored just how much President Donald Trump’s appointment of Justice Neil Gorsuch influenced the nation’s legal landscape.

Now, with a second Supreme Court nominee to select, Trump has the power to move the court solidly to the right.

The five conservative justices, including Gorsuch during his first full term on the court, voted together against the four liberals on major decisions that aligned with Republican policy outcomes, including cases where the government had reversed positions under the Trump administration.

The 5-4 decisions included upholding Trump’s travel ban, striking a financial blow to public sector unions, keeping the Republican-led Texas legislature’s congressional map, approving Ohio’s process for removing voters from registration rolls, and siding with businesses over employees when it comes to arbitration agreements.

Among other cases, the Justice Department had switched sides in the arbitration case, the Ohio voting case, the union case and another case about administrative judges in the Securities and Exchange Commission.