The decision that rejected Donald Trump’s attempts to rewrite the Constitution was much too close.