U.S. President Donald Trump dismissed British opposition demands that Prime Minister Boris Johnson resign after the Supreme Court ruled he had acted unlawfully.