A federal judge who has ruled twice to halt executive actions by President Donald Trump previously gave about $500,000 in campaign contributions