In a caustic critique of the court issued on social media late Sunday night, the president inadvertently buttressed its independence.