Supreme Court justices serve lifetime appointments (until retirement or death), but they can be removed from the bench by being impeached by Congress. Just like with a president, the impeachment begins in the House of Representatives, where a majority of Representatives must vote in favor of the impeachment; then the Senate needs to convict the justice by a two-thirds vote to remove him or her from the high court.
Technically under the Constitution, impeachment of a Supreme Court justice should be for criminal or ethical issues, not political reasons. No justice has ever been removed through this process, and only one justice of the Supreme Court has ever been impeached. In 1805, Justice Samuel Chase was impeached in the House by his political enemies, but the Senate refused to convict him when it became apparent that Chase's opponents were after him only because they disagreed with his decisions.