Donald Trump sarcastically congratulated Chinese President Xi Jinping after the US Supreme Court left birthright citizenship intact.