Trump’s clash with the courts raises prospect of showdown over separation of powers