Republicans remade the judiciary. It’s haunting Donald Trump.