The Supreme Court ruled against President-elect Donald Trump twice in the days leading up to his inauguration.