Although the Supreme Court ruling on Monday concerned Donald Trump, it has major repercussions for future White House occupants.