To be fair, they passed the ruling for non-supreme court justices. Republicans extended it to include them in 2017. Still, an example of terrible governance and foresight on both sides.
That would be incorrect, unless you are talking about a regular federal judge and not a Supreme Court justice. In the latter case, it was a rule the Republicans changed in 2017 to benefit themselves.